linux/tools/testing/selftests/networking/timestamping
Willem de Bruijn cda261f421 selftests: add txtimestamp kselftest
Run the transmit timestamp tests as part of kselftests.

Add a txtimestamp.sh test script that runs most variants:
ipv4/ipv6, tcp/udp/raw/raw_ipproto/pf_packet, data/nodata,
setsockopt/cmsg. The script runs tests with netem delays.

Refine txtimestamp.c to validate results. Take expected
netem delays as input and compare against real timestamps.

To run without dependencies, add a listener socket to be
able to connect in the case of TCP.

Add the timestamping directory to the kselftests Makefile.
Build all the binaries. Only run verified txtimestamp.sh.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-12-20 17:01:17 -08:00
..
.gitignore selftests/net: Add a test to validate behavior of rx timestamps 2017-08-23 20:30:47 -07:00
config selftests: add txtimestamp kselftest 2018-12-20 17:01:17 -08:00
hwtstamp_config.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile selftests: add txtimestamp kselftest 2018-12-20 17:01:17 -08:00
rxtimestamp.c selftests/net: rxtimestamp: Fix an off by one 2017-10-05 21:28:53 -07:00
timestamping.c
txtimestamp.c selftests: add txtimestamp kselftest 2018-12-20 17:01:17 -08:00
txtimestamp.sh selftests: add txtimestamp kselftest 2018-12-20 17:01:17 -08:00