• Willem de Bruijn's avatar
    selftests: add txtimestamp kselftest · cda261f4
    Willem de Bruijn authored
    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: default avatarWillem de Bruijn <willemb@google.com>
    Acked-by: default avatarSoheil Hassas Yeganeh <soheil@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    cda261f4
Makefile 4.37 KB