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 2668AA0032 for ; Wed, 13 Jul 2022 07:35:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8C9E4282B; Wed, 13 Jul 2022 07:35:18 +0200 (CEST) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 7343542826 for ; Wed, 13 Jul 2022 07:35:17 +0200 (CEST) Received: by mail-pj1-f51.google.com with SMTP id s21so10501028pjq.4 for ; Tue, 12 Jul 2022 22:35:17 -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; bh=BeEUZ+b95NNHV5lep0tu1O58w7L6PGKJZZG6f1UTaYk=; b=ORjG72EpZnxRoYNxZenN549hZ0tAd83SogYZyCBE9oq4w3OA38KEib8z1drDcJHurC Bnd2DkOJfZZfYJ6ZMz28XAGKHagvjoR4LCYuX6I8QNsBHwTALfQA7tU7eVPoWrs9NayZ WxMgPAY4+1M7rc+6oAS6kMS+ajjYnKCWBNAi0tl+B4ucMPnZtX6AycoRyAJVUP2fDarl IrswNunVgePLpmeDJ/YaUTk2E52U9tmruk//8VMT/S1OCdGdUDCUI2iALeSfa9rFM0yY kzMtIfwx+u6yt22+O6/HrbWxUPKIyx3J6q/82tD5C71s4jQHcae7u5O57A8C2vz+ENUC HFZg== 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; bh=BeEUZ+b95NNHV5lep0tu1O58w7L6PGKJZZG6f1UTaYk=; b=VfJCzGCS5PVebnvKBImdzJDqBBl7EZgmmWSrPlo6JYh/FqRP8SOUmeD6Q/ruDkkKk5 cwp80tKL3c+mw18ZL/8178fqT1N1F2XV0LIxnGkDU1Mq6siVWsoqIVkfjy5/fukW9XI+ sW8PywFSLB6Y24DoBNeTkpIQJek7RaPA/9WxM+konCHmdleBR/zDtyhvC2GWvkAjSdZ+ JhM9JYIgrnwh8PxqbZS5IJa2wxShKrWvKe7oaNurTJHQbWDHdoru4clOOKy3gKxa5v3D TuJbbJ9wyFpHxsuDQmw4ICtTOa846JUmA9+9kJlkq2WKbUYZVLBssXXdwSOaEzg4A17j TjAA== X-Gm-Message-State: AJIora9dG3N6SIoUhw6vlIrxRTt0P2eYoE8QmhlzM77/3ccndVf6NBNf sA3VlhsxTsGHP4ixoleYSjjRQfQ9CyUXheQ5eqx9jSJ/ X-Google-Smtp-Source: AGRyM1ssOZC+9RGkoF4BRg40UGV6Blo9AeOAlcpIkg1YIwxp3FKn6hGh48tLDyPFEq0JbBx0pPTs1cMsOCfU+NB9DJQ= X-Received: by 2002:a17:902:cad5:b0:16b:e3f1:fd8e with SMTP id y21-20020a170902cad500b0016be3f1fd8emr1576571pld.106.1657690516226; Tue, 12 Jul 2022 22:35:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Lokesh Chakka Date: Wed, 13 Jul 2022 11:05:16 +0530 Message-ID: Subject: Re: skeleton code failing To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000005e07a105e3a92623" 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 --0000000000005e07a105e3a92623 Content-Type: text/plain; charset="UTF-8" hello friends, Is there anyone else facing the same issue ? 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. Thanks & Regards -- Lokesh Chakka. On Mon, Jul 11, 2022 at 11:29 AM Lokesh Chakka < lvenkatakumarchakka@gmail.com> wrote: > Hello, > > I am learning DPDK. > > I am using the following network cards that support dpdk. > > https://www.broadcom.com/products/ethernet-connectivity/network-adapters/100gb-nic-ocp/p2100g > > I am seeing rte_eth_dev_count_avail is failing. code is as follows: > > ==================================== > nb_ports = rte_eth_dev_count_avail(); > if( nb_ports < 2 || ( nb_ports & 1 ) ) > rte_exit( EXIT_FAILURE, "Error: %u number of ports must be > even\n", nb_ports ); > ==================================== > > I have one card and just because it is for learning purposes, I have > looped back both the slots of the same cards so that I can send on one slot > and receive on another slot. > > Can someone please help me how to fix the issue. > > Device Driver is bnxt_en > Platform is Ubuntu 22.04 > > Please let me know if any more information is required. > > Thanks & Regards > -- > Lokesh Chakka. > --0000000000005e07a105e3a92623 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hello friends,

=
Is there anyone else facing the same issue ?
Would like to u= nderstand if I am missing something. I am new to this platform.=C2=A0
=
rte_eth_dev_count_avail is returning zero.=C2=A0
OS is Ubuntu 22.04. DPDK is latest=C2=A0version.
Cards are being detected by Linux. Ifconfig is showing the ca= rds up. LED is also glowing.=C2=A0

Thanks & R= egards
--
Lokesh Chakka.


On Mon, Jul 11, 2022 at 11:29 AM Lokesh = Chakka <lvenkatakumarchakka@gmail.com> wrote:
He= llo,

I am learning DPDK.

<= div>I am using the following network cards that support dpdk.

I am seeing rte_eth_dev_count_avail i= s failing. code is as follows:

=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
nb_ports =3D rte_eth_dev_count_avail();
=C2=A0= =C2=A0 =C2=A0 =C2=A0 if( nb_ports < 2 || ( nb_ports & 1 ) )
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rte_exit( EXIT_FAILURE= , "Error: %u number of ports must be even\n", nb_ports );
=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 have one card and just because it is= for learning purposes, I have looped back both the slots of the same cards= so that I can send on one slot and receive on another slot.

Can someone please help me how to fix the issue.=

Device Driver is bnxt_en
Platform is Ub= untu 22.04

Please let me know if any more informat= ion is required.

Thanks & Regards
--Lokesh Chakka.
<= /div>
--0000000000005e07a105e3a92623--