diff mbox series

[ovs-dev,dpdk-latest,5/6] netdev-dpdk: Fix build with 21.05.

Message ID 20210506152548.29597-6-david.marchand@redhat.com
State Accepted
Headers show
Series Rebase and fixes for 21.05. | expand

Commit Message

David Marchand May 6, 2021, 3:25 p.m. UTC
PCI_ANY_ID has been prefixed with RTE_ [1].

1: https://git.dpdk.org/dpdk/commit/?id=4d509afa7bb2

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 lib/netdev-dpdk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 9d8096668e..e67d27d4e3 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -3680,8 +3680,8 @@  netdev_dpdk_get_status(const struct netdev *netdev, struct smap *args)
     ovs_mutex_unlock(&dev->mutex);
     const struct rte_bus *bus;
     const struct rte_pci_device *pci_dev;
-    uint16_t vendor_id = PCI_ANY_ID;
-    uint16_t device_id = PCI_ANY_ID;
+    uint16_t vendor_id = RTE_PCI_ANY_ID;
+    uint16_t device_id = RTE_PCI_ANY_ID;
     bus = rte_bus_find_by_device(dev_info.device);
     if (bus && !strcmp(bus->name, "pci")) {
         pci_dev = RTE_DEV_TO_PCI(dev_info.device);