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 3F092A04F1; Wed, 11 Dec 2019 09:45:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6D8532C6A; Wed, 11 Dec 2019 09:45:33 +0100 (CET) Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by dpdk.org (Postfix) with ESMTP id B841C91 for ; Wed, 11 Dec 2019 09:45:31 +0100 (CET) Received: by mail-ed1-f66.google.com with SMTP id cx19so18745387edb.1 for ; Wed, 11 Dec 2019 00:45:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=J8vxUExfpAhU77a0WWX5QgxLVBCsssFL5dYKA5t+/Vw=; b=lSCLGTKG/pWY2E+nEX19YFbi6B4npeOzVM4RvCXE4Zzgng0epvX6Qm79O2Si5dR3Zx uKelTaWCwscPYsl9Qaq7OibZduNv//w9c/mozi6/aOkPVXACCxHV6QN6muLDQiv8rQjB qqd6MZyfA9CLnj5kzOMLXhRg+8ShcQRSzLFVZHg1OwDxgP9yFLSkVlYY8cpsoXmm79/s GVvqOAu9LtPmOdkBCczd9R98LEPHdIkZLkg8yPOu3vAw5uPhnW2rUms9Ab9OsX20ccj1 UAeT9JrHiODjnTuw6CqY4z+zS4jE3fKKyIDTElnLaB+tYP+Bh6xqEfMzA795ze7lSFFm SmvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=J8vxUExfpAhU77a0WWX5QgxLVBCsssFL5dYKA5t+/Vw=; b=h7XL8QcVWZDvvaajw5xJ6EKpiKN9aAnx40IsL8b6Wee3v30rDZXXeQ5PuyoVvzBTu4 WemoTtDvqRaJXnE3/wpSSK5woZnapJVkJUIWeryGfIjkblOniaB1sUdxJT796EGsapYs T9I9lQeGKTBAHrrnSX0e2CLS0ipw/VLKEDKBqxqQ1/+PM6W4xIVFJz3N+MYUXLqEnCSK o2HSO0My5KXJUymhsGBettdmXoe+1TvaiBBNx/yQhEgZ7VrkKrBZMWBedQ66ZHSGxglJ Sjlcr7j52JNnC15qMlG7JWlOJdwtBSdvTf9uBeb1VSF7b3nrenDrjMZm/6J43Y9kvjW5 V1RQ== X-Gm-Message-State: APjAAAUtY70EPiuaPYF26kpw8WP4+ZZSOSaNuo+pAKx2tJDTzO6Jfjli YtMw+P1BOUJZq/3r48bpqV63MzfihVFK44HZbDUxkg== X-Google-Smtp-Source: APXvYqzofSCBPibRi27Bv6BQd6rIoUq05vVQ9LFmLHcbFFUaGxEkg0iwtavV8RXp/eiW8LbjQBnpxhmJQ8SgoGDebJc= X-Received: by 2002:aa7:c507:: with SMTP id o7mr1938533edq.282.1576053931369; Wed, 11 Dec 2019 00:45:31 -0800 (PST) MIME-Version: 1.0 References: <20191210223726.19698-1-dharton@cisco.com> In-Reply-To: <20191210223726.19698-1-dharton@cisco.com> From: =?UTF-8?Q?Micha=C5=82_Krawczyk?= Date: Wed, 11 Dec 2019 09:45:20 +0100 Message-ID: To: David Harton Cc: dev@dpdk.org, Marcin Wojtas , "Tzalik, Guy" , "Schmeilin, Evgeny" , "Chauskin, Igor" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [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" wt., 10 gru 2019 o 23:37 David Harton napisa=C5=82(a): > > 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 Acked-by: Michal Krawczyk > --- > 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 =3D eth_dev; > > pci_dev =3D RTE_ETH_DEV_TO_PCI(eth_dev); > + rte_eth_copy_pci_info(eth_dev, pci_dev); > adapter->pdev =3D pci_dev; > > PMD_INIT_LOG(INFO, "Initializing %x:%x:%x.%d", > -- > 2.19.1 >