diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-07-12 23:52:29 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-20 00:20:42 +0300 |
commit | 7c701d92b2b5e5175dbfec875816474b802b0c45 (patch) | |
tree | 974616dd04936290206960cea47e7366b1bc0392 /include/linux/socket.h | |
parent | 2e07a521e1e424787af3bfc59615de4220856c35 (diff) | |
download | linux-7c701d92b2b5e5175dbfec875816474b802b0c45.tar.xz |
skbuff: carry external ubuf_info in msghdr
Make possible for network in-kernel callers like io_uring to pass in a
custom ubuf_info by setting it in a new field of struct msghdr.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/socket.h')
-rw-r--r-- | include/linux/socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index 17311ad9f9af..7bac9fc1cee0 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -69,6 +69,7 @@ struct msghdr { unsigned int msg_flags; /* flags on received message */ __kernel_size_t msg_controllen; /* ancillary data buffer length */ struct kiocb *msg_iocb; /* ptr to iocb for async requests */ + struct ubuf_info *msg_ubuf; }; struct user_msghdr { |