From: Lokesh Chakka <lvenkatakumarchakka@gmail.com>
To: users@dpdk.org
Subject: Re: skeleton code failing
Date: Wed, 13 Jul 2022 11:05:16 +0530 [thread overview]
Message-ID: <CACh--sgyv8mffcFVfwCDJmXOvUKDp9sMPveHZRPYuj-Wrp4hhA@mail.gmail.com> (raw)
In-Reply-To: <CACh--shHHst2z=ujhZiZhwpEHDzkeNpB_cRZy0_Oe9-mNLNm4A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1373 bytes --]
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.
>
[-- Attachment #2: Type: text/html, Size: 2699 bytes --]
next prev parent reply other threads:[~2022-07-13 5:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 5:59 Lokesh Chakka
2022-07-13 5:35 ` Lokesh Chakka [this message]
2022-07-13 6:52 ` David Marchand
2022-07-13 7:13 ` Lokesh Chakka
2022-07-13 7:26 ` Lokesh Chakka
2022-08-26 4:35 ` Lokesh Chakka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACh--sgyv8mffcFVfwCDJmXOvUKDp9sMPveHZRPYuj-Wrp4hhA@mail.gmail.com \
--to=lvenkatakumarchakka@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).