From: Gaetan Rivet Date: Fri, 7 Jul 2017 00:04:31 +0000 (+0200) Subject: net/virtio: remove device type reference X-Git-Tag: spdx-start~2550 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2b0e39c1832c053792ed147c6b1afeebb674e19a;p=dpdk.git net/virtio: remove device type reference Signed-off-by: Gaetan Rivet --- diff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virtio/virtio_pci.c index b7b3d61575..e6eda75b69 100644 --- a/drivers/net/virtio/virtio_pci.c +++ b/drivers/net/virtio/virtio_pci.c @@ -38,6 +38,7 @@ #endif #include +#include #include "virtio_pci.h" #include "virtio_logs.h" @@ -684,8 +685,8 @@ vtpci_init(struct rte_pci_device *dev, struct virtio_hw *hw) if (rte_pci_ioport_map(dev, 0, VTPCI_IO(hw)) < 0) { if (dev->kdrv == RTE_KDRV_UNKNOWN && (!dev->device.devargs || - dev->device.devargs->type != - RTE_DEVTYPE_WHITELISTED_PCI)) { + dev->device.devargs->bus != + rte_bus_find_by_name("pci"))) { PMD_INIT_LOG(INFO, "skip kernel managed virtio device."); return 1;