net: move skb ref helpers to new header
authorMina Almasry <almasrymina@google.com>
Wed, 10 Apr 2024 19:05:01 +0000 (12:05 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 12 Apr 2024 02:29:22 +0000 (19:29 -0700)
commitf6d827b180bda01f8805bf5e85307419b0d6f890
tree64f1290c200b65703921a5000cd99383b17a1921
parent94426ed2137a948d212302df571445d4245772b9
net: move skb ref helpers to new header

Add a new header, linux/skbuff_ref.h, which contains all the skb_*_ref()
helpers. Many of the consumers of skbuff.h do not actually use any of
the skb ref helpers, and we can speed up compilation a bit by minimizing
this header file.

Additionally in the later patch in the series we add page_pool support
to skb_frag_ref(), which requires some page_pool dependencies. We can
now add these dependencies to skbuff_ref.h instead of a very ubiquitous
skbuff.h

Signed-off-by: Mina Almasry <almasrymina@google.com>
Link: https://lore.kernel.org/r/20240410190505.1225848-2-almasrymina@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
16 files changed:
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
drivers/net/ethernet/marvell/sky2.c
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/sun/cassini.c
drivers/net/veth.c
drivers/net/xen-netback/netback.c
include/linux/skbuff.h
include/linux/skbuff_ref.h [new file with mode: 0644]
net/core/gro.c
net/core/skbuff.c
net/ipv4/esp4.c
net/ipv4/tcp_output.c
net/ipv6/esp6.c
net/tls/tls_device.c
net/tls/tls_device_fallback.c
net/tls/tls_strp.c