<div dir="auto"><div dir="ltr"><div>hello friends,</div><div><br></div><div>Is there anyone else facing the same issue ?</div><div>Would like to understand if I am missing something. I am new to this platform. <br></div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">rte_eth_dev_count_avail is returning zero. </div><div dir="ltr">OS is Ubuntu 22.04. DPDK is latest version.</div><div dir="ltr">Cards are being detected by Linux. Ifconfig is showing the cards up. LED is also glowing. </div><div dir="ltr"><br>Thanks & Regards<br>--<br>Lokesh Chakka.<br></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 11, 2022 at 11:29 AM Lokesh Chakka <<a href="mailto:lvenkatakumarchakka@gmail.com" target="_blank" rel="noreferrer">lvenkatakumarchakka@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank" rel="noreferrer">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"><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>
</blockquote></div></div>