hi stephen,
Thanks for your response. However it seems the solution is not working. The following is the modified snippet....
while( condition )
{
for( pkt_count=0; pkt_count<num_of_pkts_per_queue; pkt_count++ )
{
rte_mbuf_refcnt_set( mbuf[pkt_count], 2 );// setting to two - first and second iteration
}
for( pkt_count=0; pkt_count<5; pkt_count++ )
{
fprintf( stderr, "%s %d %u\n", __func__, __LINE__, rte_mbuf_refcnt_read( mbuf[pkt_count] ) );//able to print two- first and second iteration
}
if( rte_eth_tx_burst( port_id, 0, mbuf, num_of_pkts_per_queue ) != num_of_pkts_per_queue )
{
fprintf( stderr, "%s %d %d %s\n", __func__, __LINE__, rte_errno, rte_strerror(rte_errno) );//failing second time
rte_exit( EXIT_FAILURE, "%s %d rte_eth_tx_burst port id: %u\n", __func__, __LINE__, port_id );
}
fprintf( stderr, "%s %d port: %u sent %u packets\n", __func__, __LINE__, port_id, num_of_pkts_per_queue );//able to send once - first iteration only
for( pkt_count=0; pkt_count<5; pkt_count++ )
{
fprintf( stderr, "%s %d %u\n", __func__, __LINE__, rte_mbuf_refcnt_read( mbuf[pkt_count] ) );//refcnt is printing one
}
}
There seems to be some more gap in my understanding. Could you please help understand the issue?
Thanks & Regards
--
Lokesh Chakka.