From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Harton Subject: [PATCH] ena: fix init of ena pci_dev info Date: Tue, 22 Aug 2017 20:41:45 -0400 Message-ID: <20170823004145.29046-1-dharton@cisco.com> Cc: dev@dpdk.org, David Harton To: mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com Return-path: Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) by dpdk.org (Postfix) with ESMTP id 2111F7CAF for ; Wed, 23 Aug 2017 02:42:31 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" eth_ena_dev_init() was not initializing all of the common pci dev info for the rte_eth_dev. Added call to rte_eth_copy_pci_info() to complete the init particularly the driver name. Signed-off-by: David Harton --- drivers/net/ena/ena_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 80ce1f3..a6c408b 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1289,6 +1289,7 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev) return 0; 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", -- 1.8.3.1