From: Stephen Hemminger <stephen@networkplumber.org>
To: Scott Mitchell <scott.k.mitch1@gmail.com>
Cc: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com,
mb@smartsharesystems.com
Subject: Re: [PATCH v4 2/3] net/af_packet: add io_uring Tx acceleration
Date: Thu, 3 Dec 2026 10:10:31 -0800 [thread overview]
Message-ID: <20261203101031.009e68eb@phoenix.local> (raw)
In-Reply-To: <20261203174302.1418-3-scott.k.mitch1@gmail.com>
On Thu, 3 Dec 2026 09:43:01 -0800
Scott Mitchell <scott.k.mitch1@gmail.com> wrote:
> The sendto() Tx kick makes the kernel process queued frames
> synchronously on the calling lcore. Optionally kick through an io_uring
> SQPOLL ring instead, so a kernel thread does that work, as virtio
> backends do. Each SQPOLL thread busy-polls for
> tx_io_uring_sq_thread_idle after a kick, so under load it takes a CPU
> of its own.
>
> New devargs: tx_io_uring_enabled, tx_io_uring_sq_size,
> tx_io_uring_sq_thread_idle, tx_io_uring_q_cpu (SQPOLL thread CPUs) and
> tx_io_uring_threads (SQPOLL threads shared by the queues).
>
> Requires DPDK built with liburing (RTE_HAS_LIBURING) and Linux 5.6 or
> later. Probe fails if tx_io_uring_enabled is set and the io_uring can't
> be set up, or if io_uring devargs can't be honored. A kick that finds
> the submission queue full uses sendto(), so frames queued since the
> last kick aren't left waiting for the next burst. Failed kicks are
> counted as Tx errors.
>
> Signed-off-by: Scott Mitchell <scott.k.mitch1@gmail.com>
This is a question not a requirement. Can io_uring be hidden from the
application? Many applications can't adjust eal command line so devargs
should only be required for tuning. Could the driver just try io_uring
if present and use it if available? There are some things like high
security distros using seccomp that totally block io_uring since security
modules can't scan rings easily. In that case I would think that calls
to init the ring would fail, and driver could fall back to syscalls.
Also can the user should not have to worry about more threads/queues/cpus
than already in EAL. Since queues are Tx/Rx could rx_burst (and tx_burst)
harvest completions there? Other drivers do it that way.
Size of completion queue can easily be autosized base off the number
of Tx descriptors.
Bottom line: less configuration is best
next prev parent reply other threads:[~2026-12-03 18:10 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 16:12 [RFC v1] net/af_packet: add io_uring TX acceleration scott.k.mitch1
2026-02-04 16:52 ` Stephen Hemminger
2026-02-05 0:08 ` Scott Mitchell
2026-12-01 22:36 ` [RFC PATCH v2] " Scott Mitchell
2026-12-01 22:44 ` Scott Mitchell
2026-12-02 17:16 ` Stephen Hemminger
2026-12-02 18:52 ` Scott Mitchell
2026-12-02 18:54 ` [PATCH v3 0/2] net/af_packet: add io_uring Tx acceleration Scott Mitchell
2026-12-02 18:54 ` [PATCH v3 1/2] config: detect liburing Scott Mitchell
2026-12-02 18:54 ` [PATCH v3 2/2] net/af_packet: add iouring Tx acceleration Scott Mitchell
2026-12-02 23:43 ` Stephen Hemminger
2026-12-03 0:00 ` [PATCH v3 0/2] net/af_packet: add io_uring " Stephen Hemminger
2026-12-03 0:52 ` Scott Mitchell
2026-12-03 17:42 ` [PATCH v4 0/3] " Scott Mitchell
2026-12-03 17:43 ` [PATCH v4 1/3] config: detect liburing Scott Mitchell
2026-12-03 17:43 ` [PATCH v4 2/3] net/af_packet: add io_uring Tx acceleration Scott Mitchell
2026-12-03 18:10 ` Stephen Hemminger [this message]
2026-12-03 19:20 ` Scott Mitchell
2026-12-03 17:43 ` [PATCH v4 3/3] test/af_packet: add io_uring Tx tests Scott Mitchell
2026-12-04 16:07 ` [PATCH v5 0/3] net/af_packet: add io_uring Tx acceleration Scott Mitchell
2026-12-04 16:07 ` [PATCH v5 1/3] config: detect liburing Scott Mitchell
2026-12-04 16:07 ` [PATCH v5 2/3] net/af_packet: add io_uring Tx acceleration Scott Mitchell
2026-12-04 20:22 ` Stephen Hemminger
2026-12-04 16:07 ` [PATCH v5 3/3] test/af_packet: add io_uring Tx tests Scott Mitchell
2026-12-02 16:59 ` [RFC v1] net/af_packet: add io_uring TX acceleration Stephen Hemminger
2026-12-02 17:02 ` Stephen Hemminger
2026-12-02 17:03 ` Stephen Hemminger
2026-12-02 17:04 ` 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=20261203101031.009e68eb@phoenix.local \
--to=stephen@networkplumber.org \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=mb@smartsharesystems.com \
--cc=scott.k.mitch1@gmail.com \
--cc=thomas@monjalon.net \
/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