-----Original Message-----
From: Richard Cochran <richardcochran@gmail.com>
Sent: 2021年4月18日 23:11
To: Vladimir Oltean <olteanv@gmail.com>
Cc: Y.b. Lu <yangbo.lu@nxp.com>; <redacted>; Vladimir Oltean
[off-list ref]; David S . Miller [off-list ref]; Jakub
Kicinski [off-list ref]; Jonathan Corbet [off-list ref]; Kurt
Kanzenbach [off-list ref]; Andrew Lunn [off-list ref]; Vivien
Didelot [off-list ref]; Florian Fainelli [off-list ref];
Claudiu Manoil [off-list ref]; Alexandre Belloni
[off-list ref]; UNGLinuxDriver@microchip.com;
linux-doc@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [net-next 1/3] net: dsa: optimize tx timestamp request handling
On Sun, Apr 18, 2021 at 12:18:42PM +0300, Vladimir Oltean wrote:
quoted
How about not passing "clone" back to DSA as an argument by reference,
but instead require the driver to populate DSA_SKB_CB(skb)->clone if
it needs to do so?
Also, how about changing the return type to void? Returning true or
false makes no difference.
Thank you. That's good idea.
And how about letting driver store the skb clone pointer, or not? I copied my comments in patch #3 here,
" Can we totally drop dsa_skb_cb in dsa core? The only usage of it is holding a skb clone pointer, for only felix and sja1105.
Actually we can move such pointer in <device>_skb_cb, instead of reserving the space of skb for any drivers."
+1
Thanks,
Richard