linux-stable/net/dsa
Brandon Streiff 90af1059c5 net: dsa: forward timestamping callbacks to switch drivers
Forward the rx/tx timestamp machinery from the dsa infrastructure to the
switch driver.

On the rx side, defer delivery of skbs until we have an rx timestamp.
This mimicks the behavior of skb_defer_rx_timestamp.

On the tx side, identify PTP packets, clone them, and pass them to the
underlying switch driver before we transmit. This mimicks the behavior
of skb_tx_timestamp.

Adjusted txstamp API to keep the allocation and freeing of the clone
in the same central function by Richard Cochran

Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-14 14:33:37 -05:00
..
Kconfig net: dsa: Allow compiling out legacy support 2017-12-07 14:14:54 -05:00
Makefile net: dsa: Allow compiling out legacy support 2017-12-07 14:14:54 -05:00
dsa.c net: dsa: forward timestamping callbacks to switch drivers 2018-02-14 14:33:37 -05:00
dsa2.c net: dsa: Support internal phy on 'cpu' port 2018-01-23 19:22:38 -05:00
dsa_priv.h net: dsa: Support internal phy on 'cpu' port 2018-01-23 19:22:38 -05:00
legacy.c net: dsa: Support internal phy on 'cpu' port 2018-01-23 19:22:38 -05:00
master.c net: dsa: setup and teardown master device 2017-11-09 09:26:49 +09:00
port.c net: dsa: Support internal phy on 'cpu' port 2018-01-23 19:22:38 -05:00
slave.c net: dsa: forward timestamping callbacks to switch drivers 2018-02-14 14:33:37 -05:00
switch.c net: dsa: support cross-chip FDB operations 2017-12-02 21:21:17 -05:00
tag_brcm.c net: dsa: Move padding into Broadcom tagger 2018-01-05 11:21:31 -05:00
tag_dsa.c net: dsa: {e}dsa: set offload_fwd_mark on received packets 2017-11-11 19:33:11 +09:00
tag_edsa.c net: dsa: {e}dsa: set offload_fwd_mark on received packets 2017-11-11 19:33:11 +09:00
tag_ksz.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_lan9303.c net: dsa: lan9303: calculate offload_fwd_mark from tag 2017-11-14 21:47:48 +09:00
tag_mtk.c net: dsa: mediatek: combine MediaTek tag with VLAN tag 2017-12-15 10:31:54 -05:00
tag_qca.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_trailer.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00