DPDK usage discussions
 help / color / mirror / Atom feed
* reuse the packets after tx burst
@ 2024-08-12 10:25 Lokesh Chakka
  2024-08-12 14:52 ` Stephen Hemminger
  0 siblings, 1 reply; 6+ messages in thread
From: Lokesh Chakka @ 2024-08-12 10:25 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

hello,

Here is a small piece of code :

while( condition )
{

	if( rte_eth_tx_burst( port_id, 0, mbuf, num_of_pkts_per_queue ) !=
num_of_pkts_per_queue )
	{
		fprintf( stderr, "%d %s\n", rte_errno, rte_strerror(rte_errno) );
		rte_exit( EXIT_FAILURE, "%s %d rte_eth_tx_burst port id: %u\n",
__func__, __LINE__, port_id );//second iteration failing.
	}
	fprintf( stderr, "%s %d port: %u packet: %c sent %u packets\n",
__func__, __LINE__, port_id, argv[3][0], num_of_pkts_per_queue
);//printing once
	for( pkt_count=0; pkt_count<num_of_pkts_per_queue; pkt_count++ )
	{//want to send same data again...!!!
		mbuf[pkt_count]->pkt_len = mbuf[pkt_count]->data_len = dev_info.max_mtu;

	}

}

Can someone help me understand how to reuse the packets again to send the
same data ?

Thanks & Regards
--
Lokesh Chakka.

[-- Attachment #2: Type: text/html, Size: 1310 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-16  7:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-12 10:25 reuse the packets after tx burst Lokesh Chakka
2024-08-12 14:52 ` Stephen Hemminger
2024-08-14 12:27   ` Lokesh Chakka
2024-08-14 14:59     ` Stephen Hemminger
2024-08-15 16:18       ` Lokesh Chakka
2024-08-16  7:12         ` Lokesh Chakka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).