DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1] drivers/net/ena: Copy PCI info to rte_eth_dev
@ 2018-01-16 19:06 sodey
  2018-01-16 19:16 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: sodey @ 2018-01-16 19:06 UTC (permalink / raw)
  To: jan, jpa, netanel, evgenys; +Cc: dev, sodey

From: Souvik Dey <sodey@rbbn.com>

We need to add the pci_dev info to the rte_eth_dev structure
during the eth_ena_dev_init. Informantions like driver_name
and numa_node will not be populated otherwise.

Signed-off-by: Souvik Dey <sodey@rbbn.com>

---

 drivers/net/ena/ena_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index ac0803d..329cb29 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -1270,6 +1270,8 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)
 		     pci_dev->addr.devid,
 		     pci_dev->addr.function);
 
+	rte_eth_copy_pci_info(eth_dev, pci_dev);
+
 	adapter->regs = pci_dev->mem_resource[ENA_REGS_BAR].addr;
 	adapter->dev_mem_base = pci_dev->mem_resource[ENA_MEM_BAR].addr;
 
-- 
2.9.3.windows.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-17 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16 19:06 [dpdk-dev] [PATCH v1] drivers/net/ena: Copy PCI info to rte_eth_dev sodey
2018-01-16 19:16 ` Ferruh Yigit
2018-01-17 20:49   ` Dey, Souvik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).