[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YP/W8EYi86Oi56Kh@kroah.com>
Date: Tue, 27 Jul 2021 11:50:40 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Pavel Machek <pavel@...x.de>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Alexander Lobakin <alobakin@...me>,
Antoine Tenart <atenart@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Sasha Levin <sashal@...nel.org>
Subject: Re: [PATCH 5.10 029/167] net: do not reuse skbuff allocated from
skbuff_fclone_cache in the skb cache
On Tue, Jul 27, 2021 at 10:22:38AM +0200, Pavel Machek wrote:
> Hi!
>
> > [ Upstream commit 28b34f01a73435a754956ebae826e728c03ffa38 ]
>
> Mainline is significantly different here. Patch makes no sense in
> 5.10, as both branches of if are same.
>
> Best regards,
> Pavel
>
> > --- a/net/core/dev.c
> > +++ b/net/core/dev.c
> > @@ -6100,6 +6100,8 @@ static gro_result_t napi_skb_finish(struct napi_struct *napi,
> > case GRO_MERGED_FREE:
> > if (NAPI_GRO_CB(skb)->free == NAPI_GRO_FREE_STOLEN_HEAD)
> > napi_skb_free_stolen_head(skb);
> > + else if (skb->fclone != SKB_FCLONE_UNAVAILABLE)
> > + __kfree_skb(skb);
> > else
> > __kfree_skb(skb);
> > break;
>
You are right, I'll go drop this patch from the queue now, thanks.
greg k-h
Powered by blists - more mailing lists