From: Stephen Hemminger Date: Wed, 2 Dec 2015 22:16:18 +0000 (-0800) Subject: cxgbe: use explicit PCI driver structure X-Git-Tag: spdx-start~7877 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ca26d3b4e03e1c59397d6c54e67edeecfba5d493;p=dpdk.git cxgbe: use explicit PCI driver structure The upcoming Hyper-V driver converts the pci_drv element in struct eth_driver to a union. When vmbus is added the pci_drv needs to be explicit. Easier to fix the issue ahead of time. This is backwards compatible with previous code. Signed-off-by: Stephen Hemminger Acked-by: Rahul Lakkireddy --- diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c index ec5d22b3a1..97ef152e46 100644 --- a/drivers/net/cxgbe/cxgbe_ethdev.c +++ b/drivers/net/cxgbe/cxgbe_ethdev.c @@ -847,7 +847,7 @@ out_free_adapter: } static struct eth_driver rte_cxgbe_pmd = { - { + .pci_drv = { .name = "rte_cxgbe_pmd", .id_table = cxgb4_pci_tbl, .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,