[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1ad4b9f0-c9d4-954b-eafe-8652ea6ce409@gmail.com>
Date: Thu, 26 Sep 2019 12:05:11 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Florian Westphal <fw@...len.de>, netdev@...r.kernel.org
Cc: steffen.klassert@...unet.com, paulb@...lanox.com,
vladbu@...lanox.com
Subject: Re: [PATCH v2 net] sk_buff: drop all skb extensions on free and skb
scrubbing
On 9/26/19 11:37 AM, Florian Westphal wrote:
> Now that we have a 3rd extension, add a new helper that drops the
> extension space and use it when we need to scrub an sk_buff.
>
> }
> diff --git a/net/core/skbuff.c b/net/core/skbuff.c
> index f12e8a050edb..01d65206f4fb 100644
> --- a/net/core/skbuff.c
> +++ b/net/core/skbuff.c
> @@ -5119,7 +5119,7 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet)
> skb->skb_iif = 0;
> skb->ignore_df = 0;
> skb_dst_drop(skb);
> - secpath_reset(skb);
> + skb_ext_reset(skb);
> nf_reset(skb);
> nf_reset_trace(skb);
It is unfortunate nf_reset(skb) will call skb_ext_del(skb, SKB_EXT_BRIDGE_NF),
which is useless after skb_ext_reset(skb)
Maybe time for a nf_ct_reset() helper only dealing with nfct.
Powered by blists - more mailing lists