cxgbe: use explicit PCI driver structure
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 2 Dec 2015 22:16:18 +0000 (14:16 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 6 Dec 2015 23:55:51 +0000 (00:55 +0100)
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 <stephen@networkplumber.org>
Acked-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_ethdev.c

index ec5d22b..97ef152 100644 (file)
@@ -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,