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)
commite7d2b510165fff6bedc9cca88c071ad846850c74
treeb14a20279c36ca9fac082210cf5419e057075337
parentdfff202be5ea884498beb9f60492053144dd4b3f
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