summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@6wind.com>2016-07-11 16:40:41 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-11 17:42:54 +0200
commit53c88446d03d8a9b0987f9f37d5e5543184a52ea (patch)
tree8d6ccad44eee79a24900df25b74e6967258ab67b /drivers
parent98dd7ad4da568279811883b6434f67ef4ef67ed3 (diff)
downloaddpdk-53c88446d03d8a9b0987f9f37d5e5543184a52ea.zip
dpdk-53c88446d03d8a9b0987f9f37d5e5543184a52ea.tar.gz
dpdk-53c88446d03d8a9b0987f9f37d5e5543184a52ea.tar.xz
net/vmxnet3: move PCI device ids to the driver
Moved vmware device ids macro 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/vmxnet3/vmxnet3_ethdev.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c
index 8da4449..5874215 100644
--- a/drivers/net/vmxnet3/vmxnet3_ethdev.c
+++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c
@@ -100,12 +100,11 @@ static void vmxnet3_process_events(struct vmxnet3_hw *);
/*
* The set of PCI devices this driver supports
*/
+#define VMWARE_PCI_VENDOR_ID 0x15AD
+#define VMWARE_DEV_ID_VMXNET3 0x07B0
static const struct rte_pci_id pci_id_vmxnet3_map[] = {
-
-#define RTE_PCI_DEV_ID_DECL_VMXNET3(vend, dev) {RTE_PCI_DEVICE(vend, dev)},
-#include "rte_pci_dev_ids.h"
-
-{ .vendor_id = 0, /* sentinel */ },
+ { RTE_PCI_DEVICE(VMWARE_PCI_VENDOR_ID, VMWARE_DEV_ID_VMXNET3) },
+ { .vendor_id = 0, /* sentinel */ },
};
static const struct eth_dev_ops vmxnet3_eth_dev_ops = {