aboutsummaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorGravatar Jakub Kicinski <kuba@kernel.org> 2022-09-28 18:51:27 -0700
committerGravatar Jakub Kicinski <kuba@kernel.org> 2022-09-28 18:51:28 -0700
commit578b054684e6ad46f6089b726c05054fc5e3cd74 (patch)
treeb14a20279c36ca9fac082210cf5419e057075337 /include/net
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/netfil... (diff)
parentnet: shrink struct ubuf_info (diff)
downloadlinux-578b054684e6ad46f6089b726c05054fc5e3cd74.tar.gz
linux-578b054684e6ad46f6089b726c05054fc5e3cd74.tar.bz2
linux-578b054684e6ad46f6089b726c05054fc5e3cd74.zip
Merge branch 'shrink-struct-ubuf_info'
Pavel Begunkov says: ==================== shrink struct ubuf_info struct ubuf_info is large but not all fields are needed for all cases. We have limited space in io_uring for it and large ubuf_info prevents some struct embedding, even though we use only a subset of the fields. It's also not very clean trying to use this typeless extra space. Shrink struct ubuf_info to only necessary fields used in generic paths, namely ->callback, ->refcnt and ->flags, which take only 16 bytes. And make MSG_ZEROCOPY and some other users to embed it into a larger struct ubuf_info_msgzc mimicking the former ubuf_info. Note, xen/vhost may also have some cleaning on top by creating new structs containing ubuf_info but with proper types. ==================== Link: https://lore.kernel.org/r/cover.1663892211.git.asml.silence@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions