DPDK usage discussions
 help / color / mirror / Atom feed
* skeleton code failing
@ 2022-07-11  5:59 Lokesh Chakka
  2022-07-13  5:35 ` Lokesh Chakka
  0 siblings, 1 reply; 6+ messages in thread
From: Lokesh Chakka @ 2022-07-11  5:59 UTC (permalink / raw)
  To: users

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-26  4:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11  5:59 skeleton code failing Lokesh Chakka
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

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).