[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZD03APYJqdhflYNJ@kernel.org>
Date: Mon, 17 Apr 2023 14:09:36 +0200
From: Simon Horman <horms@...nel.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, pablo@...filter.org, fw@...len.de
Subject: Re: [PATCH net-next 5/5] net: skbuff: hide nf_trace and ipvs_property
On Fri, Apr 14, 2023 at 09:01:05AM -0700, Jakub Kicinski wrote:
> 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.
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
FWIIW, I'm fine with this, modulo the module handling
discussed elsewhere in this thread.
Acked-by: Simon Horman <horms@...nel.org>
> ---
> CC: pablo@...filter.org
> CC: fw@...len.de
> ---
> include/linux/skbuff.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
> index 543f7ae9f09f..7b43d5a03613 100644
> --- a/include/linux/skbuff.h
> +++ b/include/linux/skbuff.h
> @@ -966,8 +966,12 @@ struct sk_buff {
> __u8 ndisc_nodetype:2;
> #endif
>
> +#if IS_ENABLED(CONFIG_IP_VS)
> __u8 ipvs_property:1;
> +#endif
> +#if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) || defined(CONFIG_NF_TABLES)
> __u8 nf_trace:1;
> +#endif
> #ifdef CONFIG_NET_SWITCHDEV
> __u8 offload_fwd_mark:1;
> __u8 offload_l3_fwd_mark:1;
> --
> 2.39.2
>
Powered by blists - more mailing lists