linux-stable/drivers/net/dsa/hirschmann
Yangbo Lu 5c5416f5d4 net: dsa: no longer clone skb in core driver
It was a waste to clone skb directly in dsa_skb_tx_timestamp().
For one-step timestamping, a clone was not needed. For any failure of
port_txtstamp (this may usually happen), the skb clone had to be freed.

So this patch moves skb cloning for tx timestamp out of dsa core, and
let drivers clone skb in port_txtstamp if they really need.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Tested-by: Kurt Kanzenbach <kurt@linutronix.de>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-27 14:10:15 -07:00
..
hellcreek.c net: dsa: hellcreek: Remove redundant dev_err call in hellcreek_probe() 2021-03-28 18:05:31 -07:00
hellcreek.h net: dsa: hellcreek: Add devlink FDB region 2021-03-13 14:30:48 -08:00
hellcreek_hwtstamp.c net: dsa: no longer clone skb in core driver 2021-04-27 14:10:15 -07:00
hellcreek_hwtstamp.h net: dsa: no longer clone skb in core driver 2021-04-27 14:10:15 -07:00
hellcreek_ptp.c net: dsa: hellcreek: Add PTP status LEDs 2020-11-05 14:04:50 -08:00
hellcreek_ptp.h net: dsa: hellcreek: Add PTP status LEDs 2020-11-05 14:04:50 -08:00
Kconfig net: dsa: hellcreek: Add missing TAPRIO dependency 2021-01-29 21:02:31 -08:00
Makefile net: dsa: hellcreek: Add support for hardware timestamping 2020-11-05 14:04:49 -08:00