Skip to content

Add software rx timestamp for TCP.

Mike Maloney netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

-Initialize tss->ts[1] to 0 if caller requested any timestamps. -Fix test case to validate that tss->ts[1] is zero. -Fix tests to actually use a raw socket.
-Fix --tcp flag to work on the test.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tcp: Extend SOF_TIMESTAMPING_RX_SOFTWARE to TCP recvmsginclude/net/tcp.h net/ipv4/tcp.c net/ipv4/tcp_input.c +2 more+108 -51 reply
2/2selftests/net: Add a test to validate behavior of rx timestampstools/testing/selftests/networking/timestamping/.gitignore tools/testing/selftests/networking/timestamping/Makefile tools/testing/selftests/networking/timestamping/rxtimestamp.c+393 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchWillem de Bruijn
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/2] Add software rx timestamp for TCP.

From: Mike Maloney <[email protected]>

Add software rx timestamps for TCP, and a test to ensure consistency of behavior between IP, UDP, and TCP implementation.

Changes since v1:
-Initialize tss->ts[1] to 0 if caller requested any timestamps. -Fix test case to validate that tss->ts[1] is zero. -Fix tests to actually use a raw socket.
-Fix --tcp flag to work on the test.

Mike Maloney (2):
tcp: Extend SOF_TIMESTAMPING_RX_SOFTWARE to TCP recvmsg selftests/net: Add a test to validate behavior of rx timestamps

 include/net/tcp.h                                  |   9 +-
 net/ipv4/tcp.c                                     |  65 ++++
 net/ipv4/tcp_input.c                               |  35 +-
 net/ipv4/tcp_ipv4.c                                |   2 +
 net/ipv6/tcp_ipv6.c                                |   2 +
 .../selftests/networking/timestamping/.gitignore   |   1 +
 .../selftests/networking/timestamping/Makefile     |   4 +-
 .../networking/timestamping/rxtimestamp.c          | 389 +++++++++++++++++++++
 8 files changed, 501 insertions(+), 6 deletions(-)
 create mode 100644 tools/testing/selftests/networking/timestamping/rxtimestamp.c
Signature · 1 line
2.14.1.480.gb18f417b89-goog