aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/socket.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-07-12 21:52:29 +0100
committerJakub Kicinski <kuba@kernel.org>2022-07-19 14:20:42 -0700
commit7c701d92b2b5e5175dbfec875816474b802b0c45 (patch)
tree974616dd04936290206960cea47e7366b1bc0392 /include/linux/socket.h
parentskbuff: add SKBFL_DONT_ORPHAN flag (diff)
downloadwireguard-linux-7c701d92b2b5e5175dbfec875816474b802b0c45.tar.xz
wireguard-linux-7c701d92b2b5e5175dbfec875816474b802b0c45.zip
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.h1
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 {