public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Begunkov <asml.silence@gmail.com>
To: io-uring@vger.kernel.org
Cc: asml.silence@gmail.com, Vadim Fedorenko <vadim.fedorenko@linux.dev>
Subject: [PATCH RFC 0/7] tx timestamp io_uring commands
Date: Mon, 28 Apr 2025 13:52:31 +0100	[thread overview]
Message-ID: <cover.1745843119.git.asml.silence@gmail.com> (raw)

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

-- 
2.48.1


             reply	other threads:[~2025-04-28 12:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-28 12:52 Pavel Begunkov [this message]
2025-04-28 12:52 ` [PATCH RFC 1/7] io_uring: delete misleading comment in io_fill_cqe_aux() Pavel Begunkov
2025-04-28 12:52 ` [PATCH RFC 2/7] io_uring/cmd: move net cmd into a separate file Pavel Begunkov
2025-04-28 12:52 ` [PATCH RFC 3/7] net: timestamp: add helper returning skb's tx tstamp Pavel Begunkov
2025-04-28 12:52 ` [PATCH RFC 4/7] io_uring/poll: introduce io_arm_apoll() Pavel Begunkov
2025-04-28 12:52 ` [PATCH RFC 5/7] io_uring/cmd: allow multishot polled commands Pavel Begunkov
2025-04-28 12:52 ` [PATCH RFC 6/7] io_uring: add mshot helper for posting CQE32 Pavel Begunkov
2025-04-28 12:52 ` [PATCH RFC 7/7] io_uring/cmd: add tx timestamping cmd support Pavel Begunkov
2025-04-28 13:08 ` [PATCH RFC 0/7] tx timestamp io_uring commands Pavel Begunkov
2025-04-28 17:51 ` Jens Axboe
2025-04-28 17:51 ` (subset) " Jens Axboe

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=cover.1745843119.git.asml.silence@gmail.com \
    --to=asml.silence@gmail.com \
    --cc=io-uring@vger.kernel.org \
    --cc=vadim.fedorenko@linux.dev \
    /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