net: dsa: sja1105: Add logic for TX timestamping
On TX, timestamping is performed synchronously from the port_deferred_xmit worker thread. In management routes, the switch is requested to take egress timestamps (again partial), which are reconstructed and appended to a clone of the skb that was just sent. The cloning is done by DSA and we retrieve the pointer from the structure that DSA keeps in skb->cb. Then these clones are enqueued to the socket's error queue for application-level processing. Signed-off-by:Vladimir Oltean <olteanv@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/dsa/sja1105/sja1105.h 10 additions, 0 deletionsdrivers/net/dsa/sja1105/sja1105.h
- drivers/net/dsa/sja1105/sja1105_main.c 53 additions, 2 deletionsdrivers/net/dsa/sja1105/sja1105_main.c
- drivers/net/dsa/sja1105/sja1105_ptp.c 106 additions, 0 deletionsdrivers/net/dsa/sja1105/sja1105_ptp.c
- drivers/net/dsa/sja1105/sja1105_ptp.h 17 additions, 0 deletionsdrivers/net/dsa/sja1105/sja1105_ptp.h
- drivers/net/dsa/sja1105/sja1105_spi.c 14 additions, 0 deletionsdrivers/net/dsa/sja1105/sja1105_spi.c
- include/linux/dsa/sja1105.h 1 addition, 0 deletionsinclude/linux/dsa/sja1105.h
Please register or sign in to comment