cxgbe: explictly mark this as pci_driver
PATCH 1/1 cxgbe: explictly mark this as pci_driver
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 compatiable with previous code.
--- drivers/net/cxgbe/cxgbe_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/cxgbe/cxgbe_ethdev.c +1 -1
@@ -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 ,
Signature · 1 line
2.1.4
Quoted 28 lines · Stephen Hemminger
The upcoming Hyper-V driver converts the
pci_drvelement in structeth_driverto a union. When vmbus is added thepci_drvneeds to be explicit. Easier to fix the issue ahead of time.This is backwards compatiable with previous code.
Signed-off-by Stephen Hemminger <[email protected]>--- drivers/net/cxgbe/cxgbe_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/cxgbe/cxgbe_ethdev.c +1
-1@@ -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 ,Signature · 1 line
2.1.4
Thomas Monjalon
Applied2015-12-03 12:36, Rahul Lakkireddy:
Quoted 11 lines · Stephen Hemminger
Quoted 8 lines
The upcoming Hyper-V driver converts the
pci_drvelement in structeth_driverto a union. When vmbus is added thepci_drvneeds to be explicit. Easier to fix the issue ahead of time.This is backwards compatiable with previous code.
Signed-off-by Stephen Hemminger <[email protected]>Acked-by Rahul Lakkireddy <[email protected]>
Applied, thanks