On Thu,  3 Dec 2026 09:43:01 -0800
Scott Mitchell <[email protected]> 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 <[email protected]>

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

Reply via email to