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