mbox series

[liburing,v2,0/5] zerocopy send headers and tests

Message ID cover.1658748623.git.asml.silence@gmail.com (mailing list archive)
Headers show
Series zerocopy send headers and tests | expand

Message

Pavel Begunkov July 25, 2022, 11:33 a.m. UTC
Add zerocopy send headers, helpers and tests

v2:
	use T_EXIT_*
	fix ptr <-> int conversions for 32 bits arches
	slight renaming
	get rid of error() in the test
	add patch 5/5

Pavel Begunkov (5):
  io_uring.h: sync with kernel for zc send and notifiers
  liburing: add zc send and notif helpers
  tests: add tests for zerocopy send and notifications
  examples: add a zerocopy send example
  liburing: improve fallocate typecasting

 examples/Makefile               |   3 +-
 examples/send-zerocopy.c        | 366 +++++++++++++
 src/include/liburing.h          |  47 +-
 src/include/liburing/io_uring.h |  37 +-
 src/liburing.map                |   2 +
 src/register.c                  |  20 +
 test/Makefile                   |   1 +
 test/send-zerocopy.c            | 888 ++++++++++++++++++++++++++++++++
 8 files changed, 1358 insertions(+), 6 deletions(-)
 create mode 100644 examples/send-zerocopy.c
 create mode 100644 test/send-zerocopy.c

Comments

Ammar Faizi July 25, 2022, 12:17 p.m. UTC | #1
On 7/25/22 6:33 PM, Pavel Begunkov wrote:
> Add zerocopy send headers, helpers and tests
> 
> v2:
> 	use T_EXIT_*
> 	fix ptr <-> int conversions for 32 bits arches
> 	slight renaming
> 	get rid of error() in the test
> 	add patch 5/5
> 
> Pavel Begunkov (5):
>    io_uring.h: sync with kernel for zc send and notifiers
>    liburing: add zc send and notif helpers
>    tests: add tests for zerocopy send and notifications
>    examples: add a zerocopy send example
>    liburing: improve fallocate typecasting

I can confirm it compiles fine on all architectures now. Nice.
Jens Axboe July 25, 2022, 3:48 p.m. UTC | #2
On Mon, 25 Jul 2022 12:33:17 +0100, Pavel Begunkov wrote:
> Add zerocopy send headers, helpers and tests
> 
> v2:
> 	use T_EXIT_*
> 	fix ptr <-> int conversions for 32 bits arches
> 	slight renaming
> 	get rid of error() in the test
> 	add patch 5/5
> 
> [...]

Applied, thanks!

[1/5] io_uring.h: sync with kernel for zc send and notifiers
      (no commit info)
[2/5] liburing: add zc send and notif helpers
      (no commit info)
[3/5] tests: add tests for zerocopy send and notifications
      (no commit info)
[4/5] examples: add a zerocopy send example
      (no commit info)
[5/5] liburing: improve fallocate typecasting
      (no commit info)

Best regards,