From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4E9A6A04F5; Tue, 10 Dec 2019 23:37:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7D36F23D; Tue, 10 Dec 2019 23:37:32 +0100 (CET) Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) by dpdk.org (Postfix) with ESMTP id D2C101F5 for ; Tue, 10 Dec 2019 23:37:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=775; q=dns/txt; s=iport; t=1576017452; x=1577227052; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6lRsO7Rk3uExB+irVocFcfeZMS9mH3HAThHbbXBJRaY=; b=E4/chKVa0qLUdgobwgAWIRtLGoqIXRNACI4eqJfgoZNfJw4DZGQzfeY2 kfr2CTiq2yLmNf+hWEdwNZR51p8/UyDVFPMADH1mWZxcD6QID76rZrx+w 4ULHAcpqMS8sKvbYtABvdBgqm5wrdaMY2QZxfTU4yoYUVom+Dbxd0rp21 0=; X-IronPort-AV: E=Sophos;i="5.69,301,1571702400"; d="scan'208";a="380387875" Received: from rcdn-core-10.cisco.com ([173.37.93.146]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 10 Dec 2019 22:37:30 +0000 Received: from cpp-rtpbld-31.cisco.com (cpp-rtpbld-31.cisco.com [172.18.5.114]) by rcdn-core-10.cisco.com (8.15.2/8.15.2) with ESMTP id xBAMbUkw008097; Tue, 10 Dec 2019 22:37:30 GMT Received: by cpp-rtpbld-31.cisco.com (Postfix, from userid 140087) id 27743C63; Tue, 10 Dec 2019 17:37:30 -0500 (EST) From: David Harton To: dev@dpdk.org, mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com, igorch@amazon.com Cc: David Harton Date: Tue, 10 Dec 2019 17:37:26 -0500 Message-Id: <20191210223726.19698-1-dharton@cisco.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Outbound-SMTP-Client: 172.18.5.114, cpp-rtpbld-31.cisco.com X-Outbound-Node: rcdn-core-10.cisco.com Subject: [dpdk-dev] [PATCH] net/ena: initialize PCI info in eth_ena_dev_init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Network drivers were originally modified to initialize PCI info with commit eeefe73f0af1 ("drivers: copy PCI device info to ethdev data"). Modifying net/ena to conform. 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 7d4a3b225..4170cf749 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -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", -- 2.19.1