From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 548C2A0032 for ; Wed, 13 Jul 2022 09:13:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D3F834282D; Wed, 13 Jul 2022 09:13:37 +0200 (CEST) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id F20564282B for ; Wed, 13 Jul 2022 09:13:35 +0200 (CEST) Received: by mail-pj1-f42.google.com with SMTP id p9so10780631pjd.3 for ; Wed, 13 Jul 2022 00:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FMxf+sXGmokJYUBXgSS3AfRcgs0kTukZuW6XnPExm2E=; b=M2eB9XFUsjQX096rznrjXItym/DXaFx7LwnUjzVSRfd9aMrSkW1zR/Y+JeAFyFPj2D qJNrdDNH8hMIxWuQWFZJgNKxboGmF67Z40vtR/eU8jGXAIq+5q1NG1xA6hFfRYWp9C5m zqHL4Ref7iTBqcEILdUATUkV6cmsb3yxKyqqPDjYP4vGsKgOCTB4uLxo6iVz29kK6DvH aJaBEiX6XGx9YeXyBBnRM/aFUimnc0aSA2bQ8WXajmiNTkHhPMAwHQhXAb/48hVmstj+ T9CScbhPxdjjDGiRrejyzmd7OF79NaemXLsXirvhQr7xX9I6LPLI2nRIn28A+mqedSet Y4RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FMxf+sXGmokJYUBXgSS3AfRcgs0kTukZuW6XnPExm2E=; b=sRSlFKO6T1N+6BFZwDBXTQjkfVxkboruEEJXHdsSxkEcsua7nqpzaoiaa425iz2JAA VV2nmzrkulq0DkUs4FKjEL5SsXhUV8waL9Qv0mKO1X3qXWZomLeMmaYao0VpfDHWQVmW GX/XwxQRSAy4xghaXg1tUjf+ar/vlsfLF/1UQTFjq5ITny8xrToUg8zmnZY9sjc0wpYl z6ukDZPXXsGkTYljr/AGgsKYedKmG5vbKOSsbo/TimTPq89U7MF00O3R4ULhVZVESUTn eC9vhULoIcuLdxATRJnSrYwG8riHu0dbBX+nC6CwJCZBQLQYn4L7SabxdyZRshoRsVvt 3w/Q== X-Gm-Message-State: AJIora97t1wwziqWJ1BwS4jxKeH9PvzCLULNkpoblyC+kcHRrva4tF3+ nUm9HZcGS8kYtsQqSwEsWQpIip2atZ3AWM/lGp0= X-Google-Smtp-Source: AGRyM1tf4dW+0Q4dgiBUvyeBP2LMRE9rSLkcmRoEpb4MIGskzegEzYAji//iFAuusgfPZLNeRXZr2rhpZFt7eVWceyM= X-Received: by 2002:a17:90a:ff94:b0:1ef:8e7b:c93f with SMTP id hf20-20020a17090aff9400b001ef8e7bc93fmr2337072pjb.104.1657696415178; Wed, 13 Jul 2022 00:13:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Lokesh Chakka Date: Wed, 13 Jul 2022 12:43:23 +0530 Message-ID: Subject: Re: skeleton code failing To: David Marchand Cc: users Content-Type: multipart/alternative; boundary="000000000000f8e65405e3aa8511" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000f8e65405e3aa8511 Content-Type: text/plain; charset="UTF-8" Dear David, ================================================= $ lspci | grep -i broadcom 83:00.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM57508 NetXtreme-E 10Gb/25Gb/40Gb/50Gb/100Gb/200Gb Ethernet (rev 11) 83:00.1 Ethernet controller: Broadcom Inc. and subsidiaries BCM57508 NetXtreme-E 10Gb/25Gb/40Gb/50Gb/100Gb/200Gb Ethernet (rev 11) $ lspci -n -s 83:00.0 83:00.0 0200: 14e4:1750 (rev 11) ================================================= I am compiling my code like this : ================================================= gcc main.c `pkg-config --cflags libdpdk --libs libdpdk` ================================================= Hence it is statically linked code. If I try $ dpdk-pmdinfo.py ./a.out But I am not seeing any output Thanks & Regards -- Lokesh Chakka. On Wed, Jul 13, 2022 at 12:22 PM David Marchand wrote: > On Wed, Jul 13, 2022 at 7:35 AM Lokesh Chakka > wrote: > > Would like to understand if I am missing something. I am new to this > platform. > > rte_eth_dev_count_avail is returning zero. > > OS is Ubuntu 22.04. DPDK is latest version. > > Cards are being detected by Linux. Ifconfig is showing the cards up. LED > is also glowing. > > Indeed, DPDK provides a userspace driver for some NetXtreme nics > (which is net/bnxt). > This userspace driver does not rely on the bnxt Linux kernel driver. > IOW, this card being detecting and working with the Linux kernel does > not automatically mean that this nic can work with DPDK. > > We need more info on your nic, first. > > Can you share the pci id of this nic (like running lspci -n -s > $pci_address)? > It should be a 14e4:XXXX. > > Then you can check this XXXX against what your dpdk application supports. > > If it is a statically linked application, you can run: > $ dpdk-pmdinfo.py /path/to/your/application > > Else, if your application is dynamically linked against DPDK driver, > you can run this command against the net/bnxt driver .so.22 (for 21.11 > and later releases): > $ dpdk-pmdinfo.py /path/to/your/dpdk/drivers/librte_net_bnxt.so.22 > > You should get a list of supported NetXtreme nics, like: > > [snipped some other drivers compiled in my application] > PMD NAME: net_bnxt > PMD HW SUPPORT: > Broadcom Inc. and subsidiaries (14e4) : BCM5745X NetXtreme-E RDMA > Virtual Function (1606) (All Subdevices) > Broadcom Inc. and subsidiaries (14e4) : BCM5745X NetXtreme-E Ethernet > Virtual Function (1609) (All Subdevices) > Broadcom Inc. and subsidiaries (14e4) : BCM57454 NetXtreme-E > 10Gb/25Gb/40Gb/50Gb/100Gb Ethernet (1614) (All Subdevices) > Broadcom Inc. and subsidiaries (14e4) : NetXtreme-E RDMA Virtual > Function (16c1) (All Subdevices) > Broadcom Inc. and subsidiaries (14e4) : NetXtreme-C Ethernet Virtual > Function (16cb) (All Subdevices) > [snipped the rest] > > I hope you can find a (XXXX) corresponding to your NIC. > > > -- > David Marchand > > --000000000000f8e65405e3aa8511 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear David,

=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$ lspci= | grep -i broadcom
83:00.0 Ethernet controller: Broadcom Inc. and subsi= diaries BCM57508 NetXtreme-E 10Gb/25Gb/40Gb/50Gb/100Gb/200Gb Ethernet (rev = 11)
83:00.1 Ethernet controller: Broadcom Inc. and subsidiaries BCM57508= NetXtreme-E 10Gb/25Gb/40Gb/50Gb/100Gb/200Gb Ethernet (rev 11)
$ = lspci -n -s 83:00.0
83:00.0 0200: 14e4:1750 (rev 11)
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=

I am compiling my code like this :
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=
gcc main.c `pkg-config --cflags libdpdk --libs libdpdk`
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
<= br>
Hence it is statically linked code.
If I try
<= div>$ dpdk-pmdinfo.py ./a.out

But I am not seeing = any output



Thanks & Regards
--
Lokesh Chakka.


On = Wed, Jul 13, 2022 at 12:22 PM David Marchand <david.marchand@redhat.com> wrote:
On Wed, Jul 13, 2022 at 7:35 AM= Lokesh Chakka
<lven= katakumarchakka@gmail.com> wrote:
> Would like to understand if I am missing something. I am new to this p= latform.
> rte_eth_dev_count_avail is returning zero.
> OS is Ubuntu 22.04. DPDK is latest version.
> Cards are being detected by Linux. Ifconfig is showing the cards up. L= ED is also glowing.

Indeed, DPDK provides a userspace driver for some NetXtreme nics
(which is net/bnxt).
This userspace driver does not rely on the bnxt Linux kernel driver.
IOW, this card being detecting and working with the Linux kernel does
not automatically mean that this nic can work with DPDK.

We need more info on your nic, first.

Can you share the pci id of this nic (like running lspci -n -s $pci_address= )?
It should be a 14e4:XXXX.

Then you can check this XXXX against what your dpdk application supports.
If it is a statically linked application, you can run:
$ dpdk-pmdinfo.py /path/to/your/application

Else, if your application is dynamically linked against DPDK driver,
you can run this command against the net/bnxt driver .so.22 (for 21.11
and later releases):
$ dpdk-pmdinfo.py /path/to/your/dpdk/drivers/librte_net_bnxt.so.22

You should get a list of supported NetXtreme nics, like:

[snipped some other drivers compiled in my application]
PMD NAME: net_bnxt
PMD HW SUPPORT:
=C2=A0Broadcom Inc. and subsidiaries (14e4) : BCM5745X NetXtreme-E RDMA
Virtual Function (1606) (All Subdevices)
=C2=A0Broadcom Inc. and subsidiaries (14e4) : BCM5745X NetXtreme-E Ethernet=
Virtual Function (1609) (All Subdevices)
=C2=A0Broadcom Inc. and subsidiaries (14e4) : BCM57454 NetXtreme-E
10Gb/25Gb/40Gb/50Gb/100Gb Ethernet (1614) (All Subdevices)
=C2=A0Broadcom Inc. and subsidiaries (14e4) : NetXtreme-E RDMA Virtual
Function (16c1) (All Subdevices)
=C2=A0Broadcom Inc. and subsidiaries (14e4) : NetXtreme-C Ethernet Virtual<= br> Function (16cb) (All Subdevices)
[snipped the rest]

I hope you can find a (XXXX) corresponding to your NIC.


--
David Marchand

--000000000000f8e65405e3aa8511--