<div dir="ltr"><div>Hello,</div><div><br></div><div>I am learning DPDK.<br></div><div><br></div><div>I am using the following network cards that support dpdk.</div><div><a href="https://www.broadcom.com/products/ethernet-connectivity/network-adapters/100gb-nic-ocp/p2100g">https://www.broadcom.com/products/ethernet-connectivity/network-adapters/100gb-nic-ocp/p2100g</a></div><div><br></div><div>I am seeing rte_eth_dev_count_avail is failing. code is as follows:</div><div><br></div><div>====================================</div><div>nb_ports = rte_eth_dev_count_avail();<br>        if( nb_ports < 2 || ( nb_ports & 1 ) )<br>                rte_exit( EXIT_FAILURE, "Error: %u number of ports must be even\n", nb_ports );<br>====================================<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div>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.<br></div><div dir="ltr"><br></div><div>Can someone please help me how to fix the issue.</div><div><br></div><div>Device Driver is bnxt_en</div><div>Platform is Ubuntu 22.04</div><div><br></div><div>Please let me know if any more information is required.<br></div><div dir="ltr"><br>Thanks & Regards<br>--<br>Lokesh Chakka.<br></div></div></div></div></div></div></div></div></div></div></div></div></div>