Skip to contentSkip to conversation

net/ena: initialize PCI info in eth_ena_dev_init

PATCH New David Harton 1 participant 1 message Dec 10, 2019 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ena: initialize PCI info in eth_ena_dev_init

Network drivers were originally modified to initialize PCI info with commit eeefe73f. Modifying net/ena to conform.

---
 drivers/net/ena/ena_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ena/ena_ethdev.c +1 -0
index 7d4a3b225..ccbc0160e 100644
@@ -1701,6 +1701,7 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)
 	adapter->rte_dev = eth_dev;
 
 	pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev);
+        rte_eth_copy_pci_info(eth_dev, pci_dev);
 	adapter->pdev = pci_dev;
 
 	PMD_INIT_LOG(INFO, "Initializing %x:%x:%x.%d",
Signature · 1 line
2.19.1