DPDK usage discussions
 help / color / mirror / Atom feed
From: Lokesh Chakka <lvenkatakumarchakka@gmail.com>
To: users@dpdk.org
Subject: skeleton code failing
Date: Mon, 11 Jul 2022 11:29:15 +0530	[thread overview]
Message-ID: <CACh--shHHst2z=ujhZiZhwpEHDzkeNpB_cRZy0_Oe9-mNLNm4A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

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: 1577 bytes --]

             reply	other threads:[~2022-07-11  5:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-11  5:59 Lokesh Chakka [this message]
2022-07-13  5:35 ` Lokesh Chakka
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--shHHst2z=ujhZiZhwpEHDzkeNpB_cRZy0_Oe9-mNLNm4A@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).