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 CEE20A0032 for ; Mon, 11 Jul 2022 07:59:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6CE264021F; Mon, 11 Jul 2022 07:59:28 +0200 (CEST) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id 950D84021E for ; Mon, 11 Jul 2022 07:59:27 +0200 (CEST) Received: by mail-pg1-f178.google.com with SMTP id s206so3882601pgs.3 for ; Sun, 10 Jul 2022 22:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=sqgtKe3l5dzZyVkwf6GjXlfNcMi3f8wBulQ18/lltM0=; b=AzkTqz723w2OurVGQDWx9NX1XHWllkG3JTilYOfDih0xWOz3h6WmOZShG6CtUUQfov qRchekUw/59gUJbjmakYrP3peqn6Oa4JSrFonkA2XU8j7DC7PpFdJYG3tukqahak2W/6 hZRlzYCLfwszGNx4H8x0hosmS1etcRmr+wLdqgBmcAMBL4npMeS1BXKYqHVEHlw00OAi Ii8QbnZPa9x24ePc9dZqZgHgC3d81EKktcmuYlKGOu2XL82jHACWthRM+ue0+ftrpoeo kbQh5W5WQ1fujlT+2m5LyWErF17eWG6otcrlITozINz7XTVJWCl0hGEBg2yV28Px0RxK lDAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=sqgtKe3l5dzZyVkwf6GjXlfNcMi3f8wBulQ18/lltM0=; b=IhJN6ZOM9ZZWxrKTyKCZZvnULs5Ee71+5rxjhby6n6QMkp+nd/KmqGCYqRMNkrop3N kjZjFZ+lT0tR/hb+hvDSEF56DPxyssLtGwbkORYwAxOAt4bJ1qdVQFh5yB73OJQqtkNV dP+Iceu90rkqycocFO3WnYgXmzTnB97Fnjt/n8rz3Hkl0AqDT63evtlGUBWld9AI7LNs DmZixRcgKi/feNQEGZP+mRgzkJR8/H10cqZZH3Aiy3GWLty5iKxgPoKi3Elv8+1WQNXD 2tLn0On5X3slC0ftx2B9UwxXFjKWMMhobXQoPwFVssj6eWvTDhdcAsoyTTxTg4n0z5Cd nvag== X-Gm-Message-State: AJIora8ujl0xbPsb6sNfaYNEyTuJ4yOgyIfIseXtLCOp3F17uAHhFtg+ 9HbNdyOPqy0GaWQCc6pDyXgKJF3jpIpRy/Uek1tSfok1dh4= X-Google-Smtp-Source: AGRyM1v0jD0qBwETYteXj9ZKPaDtHZoEPKOsxXj9VNDeDeleR2aaBxvo7hH33bl6hk+B2qpvGASnuOfcegSGXP1c24M= X-Received: by 2002:aa7:8390:0:b0:528:5e9:9d31 with SMTP id u16-20020aa78390000000b0052805e99d31mr16865530pfm.30.1657519166615; Sun, 10 Jul 2022 22:59:26 -0700 (PDT) MIME-Version: 1.0 From: Lokesh Chakka Date: Mon, 11 Jul 2022 11:29:15 +0530 Message-ID: Subject: skeleton code failing To: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000022742605e3814138" 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 --00000000000022742605e3814138 Content-Type: text/plain; charset="UTF-8" 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. --00000000000022742605e3814138 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am learning DPDK.

I am using the following network cards that sup= port dpdk.
https://www.broadcom.co= m/products/ethernet-connectivity/network-adapters/100gb-nic-ocp/p2100g<= /div>

I am seeing rte_eth_dev_count_avail is failing. co= de 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, "Err= or: %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 Ubuntu 22.04

<= /div>
Please let me know if any more information is required.
=

Thanks & Regards
--
Lokesh Chakka.
=
--00000000000022742605e3814138--