[dpdk-users] Using rte_eth_tx_burst in a loop with sleep()

Maik Pfeil maik.pfeil at gmail.com
Tue Aug 16 22:47:06 CEST 2016


if I am using rte_eth_tx_burst() in a loop:

       for(;;) {
           count_tx = rte_eth_tx_burst(0, 0, frame_burst, 9);
           printf("%s", asctime(localtime(&ltime)));
           printf("`-- Sent %d packets.\n", asctime(localtime(&ltime)),

The array frame_burst[] is filled with 10 packets.

I would expect to send every 1 second 10 frames.

But after first 10 packets sent out and 1 second sleep, DPDK starts sending
out around 10k pps.

Do you have any idea how to solve?

More information about the users mailing list