summaryrefslogtreecommitdiff
path: root/net/dsa/dsa2.c
diff options
context:
space:
mode:
authorBrandon Streiff <brandon.streiff@ni.com>2018-02-14 03:07:49 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-14 22:33:37 +0300
commit90af1059c52c0031f3bfd8279c9ede153ca83275 (patch)
tree66b3f0407a9189ef36649951fc8da47305028a8c /net/dsa/dsa2.c
parent0336369d3a4d65c9332476b618ff3bb9b41045e1 (diff)
downloadlinux-90af1059c52c0031f3bfd8279c9ede153ca83275.tar.xz
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>
Diffstat (limited to 'net/dsa/dsa2.c')
0 files changed, 0 insertions, 0 deletions