From: Alan Beadle <ab.beadle@gmail.com>
To: users@dpdk.org
Subject: Corrupted payload when sending many individual mbufs in loop
Date: Tue, 4 Feb 2025 17:36:31 -0500 [thread overview]
Message-ID: <CANTAOdy7sNDDHDgL_Ow7xBJWeYEgbbik7Ab7x4wm0uFmgzFsXQ@mail.gmail.com> (raw)
Hello,
I am working on an application that involves fragmenting a large
buffer into many smaller packets/mbufs and sending them with DPDK. The
fragment packets for each data buffer are currently sent in a loop
without any throttling (I plan to add some sort of rate limiting
later). I am not using any of the special DPDK features for IP
fragmention. I am simply preparing and sending mbufs for each
fragment.
The problem I am having is that when I need to send large buffers,
which involve many packets being sent in a tight loop, sometimes part
of the payload is corrupted when received on the other machine. This
is rare and only happens above a certain data rate. I would like to
have a reliable way to detect (or even better, prevent) this
corruption.
Out of paranoia I placed an rte_compiler_barrier() and then an
rte_mb() (a memory barrier) between the code that prepares the mbuf
and the actual tx_burst(). It did not help and I think it should be
unnecessary.
I found some information about the function rte_mbuf_check() and have
started using it to check every received packet on the other end. It
fails to detect this corruption.
Any advice would be appreciated.
-Alan
next reply other threads:[~2025-02-04 22:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 22:36 Alan Beadle [this message]
2025-02-04 23:26 ` Stephen Hemminger
2025-02-04 23:31 ` Alan Beadle
2025-02-05 12:13 ` Alan Beadle
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=CANTAOdy7sNDDHDgL_Ow7xBJWeYEgbbik7Ab7x4wm0uFmgzFsXQ@mail.gmail.com \
--to=ab.beadle@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).