From: Maik Pfeil <maik.pfeil@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] Using rte_eth_tx_burst in a loop with sleep()
Date: Tue, 16 Aug 2016 22:47:06 +0200 [thread overview]
Message-ID: <CAPM=O_uTg9v+0pmQU96vB_-1CWbjcCyyLaOECE-oQwHcb-gXzg@mail.gmail.com> (raw)
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(<ime)));
printf("`-- Sent %d packets.\n", asctime(localtime(<ime)),
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?
next reply other threads:[~2016-08-16 20:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-16 20:47 Maik Pfeil [this message]
2016-08-16 20:54 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPM=O_uTg9v+0pmQU96vB_-1CWbjcCyyLaOECE-oQwHcb-gXzg@mail.gmail.com' \
--to=maik.pfeil@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).