[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1748607147.git.asml.silence@gmail.com>
Date: Fri, 30 May 2025 13:18:18 +0100
From: Pavel Begunkov <asml.silence@...il.com>
To: io-uring@...r.kernel.org,
Vadim Fedorenko <vadim.fedorenko@...ux.dev>
Cc: asml.silence@...il.com,
netdev@...r.kernel.org,
Eric Dumazet <edumazet@...gle.com>,
Kuniyuki Iwashima <kuniyu@...zon.com>,
Paolo Abeni <pabeni@...hat.com>,
Willem de Bruijn <willemb@...gle.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Richard Cochran <richardcochran@...il.com>
Subject: [PATCH io_uring-next 0/5] io_uring cmd for tx timestamps
Vadim Fedorenko suggested to add an alternative API for receiving
tx timestamps through io_uring. The series introduces io_uring socket
cmd for fetching tx timestamps, which is a polled multishot request,
i.e. internally polling the socket for POLLERR and posts timestamps
when they're arrives. For the API description see Patch 5.
It reuses existing timestamp infra and takes them from the socket's
error queue. For networking people the important parts are Patch 1,
and io_uring_cmd_timestamp() from Patch 5 walking the error queue.
It should be reasonable to take it through the io_uring tree once
we have consensus, but let me know if there are any concerns.
Pavel Begunkov (5):
net: timestamp: add helper returning skb's tx tstamp
io_uring/poll: introduce io_arm_apoll()
io_uring/cmd: allow multishot polled commands
io_uring: add mshot helper for posting CQE32
io_uring/netcmd: add tx timestamping cmd support
include/net/sock.h | 4 ++
include/uapi/linux/io_uring.h | 6 +++
io_uring/cmd_net.c | 77 +++++++++++++++++++++++++++++++++++
io_uring/io_uring.c | 40 ++++++++++++++++++
io_uring/io_uring.h | 1 +
io_uring/poll.c | 43 +++++++++++--------
io_uring/poll.h | 1 +
io_uring/uring_cmd.c | 34 ++++++++++++++++
io_uring/uring_cmd.h | 7 ++++
net/socket.c | 49 ++++++++++++++++++++++
10 files changed, 245 insertions(+), 17 deletions(-)
--
2.49.0
Powered by blists - more mailing lists