summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@6wind.com>2016-07-11 16:40:40 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-11 17:41:10 +0200
commit98dd7ad4da568279811883b6434f67ef4ef67ed3 (patch)
tree8c507eb291a866f1e6e6d767c4c7ff9123e04d0b /drivers
parent245421e0c5639f52078e6aa98ba5e4e8b2f77a38 (diff)
downloaddpdk-98dd7ad4da568279811883b6434f67ef4ef67ed3.zip
dpdk-98dd7ad4da568279811883b6434f67ef4ef67ed3.tar.gz
dpdk-98dd7ad4da568279811883b6434f67ef4ef67ed3.tar.xz
net/virtio: move PCI device ids to the driver
Reused defines from the driver. Used RTE_PCI_DEVICE in place of RTE_PCI_DEV_ID_DECL* stuff. Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/virtio/virtio_ethdev.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c
index 8467b3c..850e3ba 100644
--- a/drivers/net/virtio/virtio_ethdev.c
+++ b/drivers/net/virtio/virtio_ethdev.c
@@ -103,11 +103,8 @@ static int virtio_dev_queue_stats_mapping_set(
* The set of PCI devices this driver supports
*/
static const struct rte_pci_id pci_id_virtio_map[] = {
-
-#define RTE_PCI_DEV_ID_DECL_VIRTIO(vend, dev) {RTE_PCI_DEVICE(vend, dev)},
-#include "rte_pci_dev_ids.h"
-
-{ .vendor_id = 0, /* sentinel */ },
+ { RTE_PCI_DEVICE(VIRTIO_PCI_VENDORID, VIRTIO_PCI_DEVICEID_MIN) },
+ { .vendor_id = 0, /* sentinel */ },
};
struct rte_virtio_xstats_name_off {