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>
This commit is contained in:
parent
98dd7ad4da
commit
53c88446d0
@ -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 = {
|
||||
|
@ -73,10 +73,6 @@
|
||||
#define RTE_PCI_DEV_ID_DECL_IXGBEVF(vend, dev)
|
||||
#endif
|
||||
|
||||
#ifndef RTE_PCI_DEV_ID_DECL_VMXNET3
|
||||
#define RTE_PCI_DEV_ID_DECL_VMXNET3(vend, dev)
|
||||
#endif
|
||||
|
||||
#ifndef RTE_PCI_DEV_ID_DECL_ENIC
|
||||
#define RTE_PCI_DEV_ID_DECL_ENIC(vend, dev)
|
||||
#endif
|
||||
@ -98,11 +94,6 @@
|
||||
#define PCI_VENDOR_ID_INTEL 0x8086
|
||||
#endif
|
||||
|
||||
#ifndef PCI_VENDOR_ID_VMWARE
|
||||
/** Vendor ID used by VMware devices */
|
||||
#define PCI_VENDOR_ID_VMWARE 0x15AD
|
||||
#endif
|
||||
|
||||
#ifndef PCI_VENDOR_ID_CISCO
|
||||
/** Vendor ID used by Cisco VIC devices */
|
||||
#define PCI_VENDOR_ID_CISCO 0x1137
|
||||
@ -352,12 +343,6 @@ RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550EM_A_VF_HV)
|
||||
RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550EM_X_VF)
|
||||
RTE_PCI_DEV_ID_DECL_IXGBEVF(PCI_VENDOR_ID_INTEL, IXGBE_DEV_ID_X550EM_X_VF_HV)
|
||||
|
||||
/****************** VMware VMXNET3 devices ******************/
|
||||
|
||||
#define VMWARE_DEV_ID_VMXNET3 0x07B0
|
||||
|
||||
RTE_PCI_DEV_ID_DECL_VMXNET3(PCI_VENDOR_ID_VMWARE, VMWARE_DEV_ID_VMXNET3)
|
||||
|
||||
/****************** Cisco VIC devices ******************/
|
||||
|
||||
#define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */
|
||||
@ -444,5 +429,4 @@ RTE_PCI_DEV_ID_DECL_BNXT(PCI_VENDOR_ID_BROADCOM, BROADCOM_DEV_ID_57314)
|
||||
#undef RTE_PCI_DEV_ID_DECL_IGBVF
|
||||
#undef RTE_PCI_DEV_ID_DECL_IXGBE
|
||||
#undef RTE_PCI_DEV_ID_DECL_IXGBEVF
|
||||
#undef RTE_PCI_DEV_ID_DECL_VMXNET3
|
||||
#undef RTE_PCI_DEV_ID_DECL_BNXT
|
||||
|
Loading…
x
Reference in New Issue
Block a user