Skip to content

Transmit time stamping on tun/tap interfaces

Richard Cochran netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Provide a generic socket error queue delivery method for Tx time stamps.include/net/sock.h net/core/sock.c net/packet/af_packet.c+51 -460 replies
2/2tun: Support software transmit time stamping.drivers/net/tun.c include/uapi/linux/if_tun.h+15 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] Transmit time stamping on tun/tap interfaces

This series adds transmit SO_TIMESTAMPING for tun and tap devices. Having this support is useful for testing multiple instances of PTP programs (for example, to exercise the best master clock behavior) and for synchronizing virtual guests.

The first patch refactors the code that delivers raw error queue packets into a common function, in order to avoid multiple, nearly identical implementations. This can be used whenever a network layer has an error queue for transmit time stamp reporting only.

Thanks,
Richard

Richard Cochran (2):
Provide a generic socket error queue delivery method for Tx time
stamps.
tun: Support software transmit time stamping.

 drivers/net/tun.c           |   14 +++++++++++--
 include/net/sock.h          |    2 ++
 include/uapi/linux/if_tun.h |    3 +++
 net/core/sock.c             |   47 ++++++++++++++++++++++++++++++++++++++++++
 net/packet/af_packet.c      |   48 ++-----------------------------------------
 5 files changed, 66 insertions(+), 48 deletions(-)
Signature · 1 line
1.7.10.4