summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@6wind.com>2016-07-11 16:40:42 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-11 17:44:21 +0200
commit0b6fe7bd4f37b72044d74d21460768eed1e2486b (patch)
tree12cc07ecc86cac0cdc722a5b848aeb89a5e9c58e /drivers
parent53c88446d03d8a9b0987f9f37d5e5543184a52ea (diff)
downloaddpdk-0b6fe7bd4f37b72044d74d21460768eed1e2486b.zip
dpdk-0b6fe7bd4f37b72044d74d21460768eed1e2486b.tar.gz
dpdk-0b6fe7bd4f37b72044d74d21460768eed1e2486b.tar.xz
net/enic: move PCI device ids to the driver
Moved cisco vendor id since the driver had no such information. Used RTE_PCI_DEVICE in place of RTE_PCI_DEV_ID_DECL* stuff. Signed-off-by: David Marchand <david.marchand@6wind.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/enic/enic_ethdev.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c
index 633e431..3c87b49 100644
--- a/drivers/net/enic/enic_ethdev.c
+++ b/drivers/net/enic/enic_ethdev.c
@@ -57,15 +57,11 @@
/*
* The set of PCI devices this driver supports
*/
+#define CISCO_PCI_VENDOR_ID 0x1137
static const struct rte_pci_id pci_id_enic_map[] = {
-#define RTE_PCI_DEV_ID_DECL_ENIC(vend, dev) {RTE_PCI_DEVICE(vend, dev)},
-#ifndef PCI_VENDOR_ID_CISCO
-#define PCI_VENDOR_ID_CISCO 0x1137
-#endif
-#include "rte_pci_dev_ids.h"
-RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET)
-RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF)
-{.vendor_id = 0, /* Sentinal */},
+ { RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET) },
+ { RTE_PCI_DEVICE(CISCO_PCI_VENDOR_ID, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) },
+ {.vendor_id = 0, /* sentinel */},
};
static int