]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/net: refactor io_sr_msg types
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 8 Sep 2022 12:20:33 +0000 (13:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 16:30:43 +0000 (10:30 -0600)
commit3200a3565800802a6c70492de6508b0faed31b1a
tree8adf18150dfce2198460a02f5fae9fcfd25189d3
parent0aeefb3361daf50d234c69d7cedf0f5347e59b0d
io_uring/net: refactor io_sr_msg types

In preparation for using struct io_sr_msg for zerocopy sends, clean up
types. First, flags can be u16 as it's provided by the userspace in u16
ioprio, as well as addr_len. This saves us 4 bytes. Also use unsigned
for size and done_io, both are as well limited to u32.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/42c2639d6385b8b2181342d2af3a42d3b1c5bcd2.1662639236.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c