unable to capture packets
Lokesh Chakka
lvenkatakumarchakka at gmail.com
Mon Oct 7 15:52:28 CEST 2024
hello,
I'm trying to capture packets using the following piece of code :
==========================================================
struct rte_eth_rxconf rxq_conf = dev_info.default_rxconf;
rxq_conf.offloads = port_conf.rxmode.offloads;
rte_eth_rx_queue_setup( 0, 0, num_of_pkts_per_queue, (unsigned int)sock,
&rxq_conf, mem_pool );
rte_eth_dev_start( 0 );
while( 1 )
{
num_of_pkts_rcvd = rte_eth_rx_burst( 0, 0, mbuf, num_of_pkts_per_queue );
fprintf( stderr, "num_of_pkts_rcvd: %u\n", num_of_pkts_rcvd );
}
==========================================================
It's always printing num_of_pkts_rcvd as 0.
Can someone help me understand what the issue is ....
Thanks & Regards
--
Lokesh Chakka.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20241007/c10e92ff/attachment.htm>
More information about the users
mailing list