]> git.baikalelectronics.ru Git - kernel.git/commit
net: shrink struct ubuf_info
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 23 Sep 2022 16:39:04 +0000 (17:39 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Sep 2022 01:51:25 +0000 (18:51 -0700)
commite9a9c0f6968479ae5fa0339576f98240eb7cd81e
treeb14a20279c36ca9fac082210cf5419e057075337
parent03eb83e22a3f96cd386ff2557a8d82de2f28b85f
net: shrink struct ubuf_info

We can benefit from a smaller struct ubuf_info, so leave only mandatory
fields and let users to decide how they want to extend it. Convert
MSG_ZEROCOPY to struct ubuf_info_msgzc and remove duplicated fields.
This reduces the size from 48 bytes to just 16.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
net/core/skbuff.c
net/ipv4/ip_output.c
net/ipv4/tcp.c
net/ipv6/ip6_output.c