Skip to content

RFC tx timestamp io_uring commands

Pavel Begunkov io-uring 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7io_uring: delete misleading comment in io_fill_cqe_aux()io_uring/io_uring.c+0 -50 replies
2/7io_uring/cmd: move net cmd into a separate fileio_uring/Makefile io_uring/cmd_net.c io_uring/uring_cmd.c+84 -830 replies
3/7net: timestamp: add helper returning skb's tx tstampinclude/net/sock.h net/socket.c+35 -00 replies
4/7io_uring/poll: introduce io_arm_apoll()io_uring/poll.c io_uring/poll.h+27 -170 replies
5/7io_uring/cmd: allow multishot polled commandsio_uring/uring_cmd.c io_uring/uring_cmd.h+26 -00 replies
6/7io_uring: add mshot helper for posting CQE32io_uring/io_uring.c io_uring/io_uring.h io_uring/uring_cmd.c +1 more+57 -00 replies
7/7io_uring/cmd: add tx timestamping cmd supportinclude/uapi/linux/io_uring.h io_uring/cmd_net.c+100 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/7] tx timestamp io_uring commands

Vadim expressed interest in having an io_uring API for tx timestamping, and the series implements a rough prototype to support that. It introduces a new socket command, which works in a multishot polling mode, i.e. it polls the socket and posts CQEs when a timestamp arrives. It reuses most of the bits on the networking side by grabbing timestamp skbs from the socket's error queue.

The ABI and net bits like skb parsing will need to be discussed and ironed before posting a non-RFC version.

Pavel Begunkov (7):
io_uring: delete misleading comment in io_fill_cqe_aux() io_uring/cmd: move net cmd into a separate file
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/cmd: add tx timestamping cmd support

 include/net/sock.h            |   3 +
 include/uapi/linux/io_uring.h |   6 ++
 io_uring/Makefile             |   1 +
 io_uring/cmd_net.c            | 177 ++++++++++++++++++++++++++++++++++
 io_uring/io_uring.c           |  46 ++++++++-
 io_uring/io_uring.h           |   1 +
 io_uring/poll.c               |  43 +++++----
 io_uring/poll.h               |   1 +
 io_uring/uring_cmd.c          |  97 +++++--------------
 io_uring/uring_cmd.h          |   7 ++
 net/socket.c                  |  32 ++++++
 11 files changed, 319 insertions(+), 95 deletions(-)
 create mode 100644 io_uring/cmd_net.c
Signature · 1 line
2.48.1