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
..
2017-11-01 12:19:03 +09:00
2018-02-13 10:36:06 -05:00
2018-02-13 10:36:09 -05:00
2017-11-08 16:12:33 +09:00
2018-02-13 10:36:08 -05:00
2018-02-13 13:56:31 -05:00
2018-02-13 10:36:08 -05:00
2018-02-13 10:36:08 -05:00
2018-02-01 09:51:57 -08:00
2018-02-13 10:36:05 -05:00