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.


Reply via email to