net/virtio: do not depend on PCI device of ethdev
authorJan Blunck <jblunck@infradead.org>
Fri, 23 Dec 2016 15:58:02 +0000 (16:58 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 25 Dec 2016 22:12:35 +0000 (23:12 +0100)
commit6a7c0dfcdf4077fe00f55ae331ccffa71b01a84e
tree51d20cf1cce4f54e551a6f8eeb63ebc5a9c9b92d
parentf5880e1f29c2643a284043bcae7ec440f31a9d61
net/virtio: do not depend on PCI device of ethdev

We don't need to depend on rte_eth_dev->pci_dev to differentiate between
the virtio_user and the virtio_pci case. Instead we can use the private
virtio_hw struct to get that information.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/net/virtio/virtio_ethdev.c