Skip to content

io_uring zc rx fixed len recvzc

David Wei io-uring 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 17 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

--------------
* Consistently use u32/unsigned int for len
* Remove nowait semantics, request will not complete until requested len has been received
* Always set REQ_F_APOLL_MULTISHOT
* Fix return codes from io_recvzc request
* Fix changing len if set to UINT_MAX in io_zcrx_recv_skb()
* Use read_desc->count

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io_uring/zcrx: add single shot recvzcio_uring/net.c io_uring/zcrx.c io_uring/zcrx.h+30 -817 replies
2/2io_uring/zcrx: add selftest case for single shot recvzctools/testing/selftests/drivers/net/hw/iou-zcrx.c tools/testing/selftests/drivers/net/hw/iou-zcrx.py+62 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] io_uring zc rx fixed len recvzc

Currently only multishot recvzc requests are supported in io_uring zc rx, but sometimes there is a need to do a single recvzc e.g. peeking at some data in the socket.

In this series, add single shot recvzc request and a selftest for the feature.

Changes in v2:
--------------
* Consistently use u32/unsigned int for len
* Remove nowait semantics, request will not complete until requested len has been received
* Always set REQ_F_APOLL_MULTISHOT
* Fix return codes from io_recvzc request
* Fix changing len if set to UINT_MAX in io_zcrx_recv_skb()
* Use read_desc->count

David Wei (2):
io_uring/zcrx: add single shot recvzc io_uring/zcrx: add selftest case for single shot recvzc

 io_uring/net.c                                | 19 +++++++-
 io_uring/zcrx.c                               | 17 +++++---
 io_uring/zcrx.h                               |  2 +-
 .../selftests/drivers/net/hw/iou-zcrx.c       | 43 ++++++++++++++++---
 .../selftests/drivers/net/hw/iou-zcrx.py      | 27 +++++++++++-
 5 files changed, 92 insertions(+), 16 deletions(-)
Signature · 1 line
2.43.5