From: wenrongbupt <wenrongbupt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: dev <dev-VfR2kkLFssw@public.gmane.org>
Subject: packets dropped when called rte_pktmbuf_prepend
Date: Thu, 30 Jan 2014 16:31:20 +0800 [thread overview]
Message-ID: <201401301631162915553@gmail.com> (raw)
Hi All,
Any ideas would be helpful
My situation is when I am running the l3fwd under example directory, which provide by Intel DPDK( Version is 1.2). I modify the source code of l3fwd, its function is just receive packets from port 0, then call rte_pktmbuf_prepend to insert a new header then sent out from port 1.
I send 32000 packets(256 bytes) from port 0, the result is :
a. if the length of new header is larger than 22 bytes, it can only received 31911 packets in port 1, some packets dropped by driver.
b. if the length of new header is less than 22 bytes, it can received all packets.
I found in function ixgbe_xmit_pkts, it can't sent all packets from queue, it may be warning there is no free TX descriptors to use.
I am wonder if you have fix this bug. I would appreciate if you can share your experience to solve this problem.
Thank you very much.
PS: Attachment is the sourcecode of l3fwd, you can replace the main.c under example in your PC. You can modify the PREPEND_LEN to running different cases.
After make, running as following:
./build/l3fwd -c f -n 4 -- -p 0x3 --config="(0,0,0),(0,1,2),(1,0,1),(1,1,3)" &
Rong
reply other threads:[~2014-01-30 8:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201401301631162915553@gmail.com \
--to=wenrongbupt-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.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).