[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8737bm4aio.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me>
Date: Tue, 30 May 2017 11:41:51 -0400
From: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...oirfairelinux.com,
"David S. Miller" <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [PATCH net-next 4/7] net: dsa: free orig skb on rcv if reallocated
Hi Andrew,
Andrew Lunn <andrew@...n.ch> writes:
> On Tue, May 30, 2017 at 10:21:28AM -0400, Vivien Didelot wrote:
>> If the receive function of a tagger reallocated the SKB, the original
>> SKB is currently not freed. Fix this and free it on both copy or error.
>
> I don't see any of the receive functions reallocate the skb. It might
> be better to just simplify the code to take away the option to return
> a different skb.
I think it was written such way to be symmetrical with the xmit
implementation, where the trailer tagger does reallocate the skb.
I would say that keeping the symmetry is simpler from the point of view
of the tagging implementations, but I don't have strong opinion here.
Thanks,
Vivien
Powered by blists - more mailing lists