Skip to content

Commit 48d80c3

Browse files
kuba-moodavem330
authored andcommitted
net: skbuff: hide nf_trace and ipvs_property
Accesses to nf_trace and ipvs_property are already wrapped by ifdefs where necessary. Don't allocate the bits for those fields at all if possible. Acked-by: Florian Westphal <fw@strlen.de> Acked-by: Simon Horman <horms@kernel.org> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4c60d04 commit 48d80c3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/linux/skbuff.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,12 @@ struct sk_buff {
966966
__u8 ndisc_nodetype:2;
967967
#endif
968968

969+
#if IS_ENABLED(CONFIG_IP_VS)
969970
__u8 ipvs_property:1;
971+
#endif
972+
#if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) || IS_ENABLED(CONFIG_NF_TABLES)
970973
__u8 nf_trace:1;
974+
#endif
971975
#ifdef CONFIG_NET_SWITCHDEV
972976
__u8 offload_fwd_mark:1;
973977
__u8 offload_l3_fwd_mark:1;

0 commit comments

Comments
 (0)