# RE: \[net-next 1/3\] net: dsa: optimize tx timestamp request handling

- From: Y.b. Lu \<yangbo.lu@nxp.com\>
- Date: 2021-04-20 07:39:49 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/04/6344711
- Thread: https://ratatoskr.run/netdev/2021/04/6341702/t.md

```text
> -----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
> [ref]; David S . Miller [ref]; Jakub
> Kicinski [ref]; Jonathan Corbet [ref]; Kurt
> Kanzenbach [ref]; Andrew Lunn [ref]; Vivien
> Didelot [ref]; Florian Fainelli [ref];
> Claudiu Manoil [ref]; Alexandre Belloni
> [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:
> >
> > 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
```
