From: David Marchand Date: Fri, 7 Oct 2016 13:03:13 +0000 (+0200) Subject: net/virtio: add missing driver name X-Git-Tag: spdx-start~5627 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=cd433ce57a569cff9d1223f29d95bf8cf4db247d net/virtio: add missing driver name The driver name has been lost with the eal rework. Restore it. Fixes: c830cb295411 ("drivers: use PCI registration macro") Signed-off-by: David Marchand Acked-by: Shreyansh Jain Acked-by: Yuanhan Liu --- diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 39bb5f78a0..86314620ee 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1321,6 +1321,9 @@ eth_virtio_dev_uninit(struct rte_eth_dev *eth_dev) static struct eth_driver rte_virtio_pmd = { .pci_drv = { + .driver = { + .name = "net_virtio", + }, .id_table = pci_id_virtio_map, .drv_flags = RTE_PCI_DRV_DETACHABLE, .probe = rte_eth_dev_pci_probe,