[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


Hi,

if I am using rte_eth_tx_burst() in a loop:

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

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