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 6CA01A04F5; Tue, 10 Dec 2019 23:18:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1823337A2; Tue, 10 Dec 2019 23:18:52 +0100 (CET) Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) by dpdk.org (Postfix) with ESMTP id D48CDA3 for ; Tue, 10 Dec 2019 23:18:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=722; q=dns/txt; s=iport; t=1576016331; x=1577225931; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uSM+KcR+JMMUjdR5JXu9cb0IEDRVJ8vnPkcOvJjBdCw=; b=jRjMWPKI/wEsqAC7w091FyC9k/gDBo/fovGDu/SIRB98WEViPzMpN9p0 gHdxeVlJk5C0PONb5O4l4b0yQRK7G34nwqnOYNaKE10RnoP7Lw/pAFqeX jWoIOMS66LoaS3W+6dTmMFeTeUfESSmLrUkPjjO8kZD9y3G/Pw874mliO 8=; X-IronPort-AV: E=Sophos;i="5.69,164,1571702400"; d="scan'208";a="398818449" Received: from alln-core-3.cisco.com ([173.36.13.136]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 10 Dec 2019 22:18:50 +0000 Received: from cpp-rtpbld-31.cisco.com (cpp-rtpbld-31.cisco.com [172.18.5.114]) by alln-core-3.cisco.com (8.15.2/8.15.2) with ESMTP id xBAMInfB017322; Tue, 10 Dec 2019 22:18:49 GMT Received: by cpp-rtpbld-31.cisco.com (Postfix, from userid 140087) id 96BC0C63; Tue, 10 Dec 2019 17:18:49 -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:18:46 -0500 Message-Id: <20191210221846.31555-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: alln-core-3.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 eeefe73f. 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