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 D098AA04F5; Tue, 10 Dec 2019 23:13:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 025DE37A2; Tue, 10 Dec 2019 23:13:47 +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 2645FA3 for ; Tue, 10 Dec 2019 23:13:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=729; q=dns/txt; s=iport; t=1576016025; x=1577225625; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FQrNmSyDERoJPrbX0v33UAsD/XWq8Y+kjDVAFQZWfGA=; b=BliiaX1D2ZcpdhncWsEfALXkYZyrIe68gK8XMPyyoyZZVCk8VGkEUZrv em1ne/caHB36df5eB8/c7/A+dqxrbm77vp17dBurIFISSmNGI4h08xEVI HvWrNQe/ivKefdMRZqjPLAggqyVc6kuCOHNC31IJWhiAaFo1s73OgEgof M=; X-IronPort-AV: E=Sophos;i="5.69,164,1571702400"; d="scan'208";a="398815835" Received: from alln-core-1.cisco.com ([173.36.13.131]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 10 Dec 2019 22:13:43 +0000 Received: from cpp-rtpbld-31.cisco.com (cpp-rtpbld-31.cisco.com [172.18.5.114]) by alln-core-1.cisco.com (8.15.2/8.15.2) with ESMTP id xBAMDhFM008930; Tue, 10 Dec 2019 22:13:43 GMT Received: by cpp-rtpbld-31.cisco.com (Postfix, from userid 140087) id 5ADFCC63; Tue, 10 Dec 2019 17:13:43 -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:13:32 -0500 Message-Id: <20191210221332.861-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-1.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..ccbc0160e 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