Skip to contentSkip to conversation

cxgbe: explictly mark this as pci_driver

PATCH Applied Stephen Hemminger 3 participants 3 messages Dec 2, 2015 – Dec 6, 2015 Network drivers

lore
Share & tools
lore
#0 lore raw

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
index ec5d22b..97ef152 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 28 lines · Stephen Hemminger

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
index ec5d22b..97ef152 100644
@@ -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