From mboxrd@z Thu Jan 1 00:00:00 1970 From: sodey@rbbn.com Subject: [PATCH v1] drivers/net/ena: Copy PCI info to rte_eth_dev Date: Tue, 16 Jan 2018 14:06:06 -0500 Message-ID: <20180116190606.20208-1-sodey@rbbn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, sodey@rbbn.com To: jan@semihalf.com, jpa@semihalf.com, netanel@amazon.com, evgenys@amazon.com Return-path: Received: from us-smtp-delivery-181.mimecast.com (us-smtp-delivery-181.mimecast.com [63.128.21.181]) by dpdk.org (Postfix) with ESMTP id 2500AA499 for ; Tue, 16 Jan 2018 20:06:38 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Souvik Dey 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 --- 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_d= ev) =09=09 pci_dev->addr.devid, =09=09 pci_dev->addr.function); =20 +=09rte_eth_copy_pci_info(eth_dev, pci_dev); + =09adapter->regs =3D pci_dev->mem_resource[ENA_REGS_BAR].addr; =09adapter->dev_mem_base =3D pci_dev->mem_resource[ENA_MEM_BAR].addr; =20 --=20 2.9.3.windows.1