net/virtio: add missing driver name
authorDavid Marchand <david.marchand@6wind.com>
Fri, 7 Oct 2016 13:03:13 +0000 (15:03 +0200)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 11 Oct 2016 08:28:34 +0000 (10:28 +0200)
The driver name has been lost with the eal rework.
Restore it.

Fixes: c830cb295411 ("drivers: use PCI registration macro")

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_ethdev.c

index 39bb5f7..8631462 100644 (file)
@@ -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,