]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: txtimestamp: add flag for timestamp validation tolerance.
authorJian Yang <jianyang@google.com>
Mon, 27 Jul 2020 21:14:38 +0000 (14:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2020 23:38:51 +0000 (16:38 -0700)
commit753333ae1d00053cef504896846812da0fd16dfc
treec03ea0fe32ba69cf2daf42c8022d863dc043ba0b
parentc0f4ab24154121f33baea2fb9979e94d5dc02246
selftests: txtimestamp: add flag for timestamp validation tolerance.

The txtimestamp selftest sets a fixed 500us tolerance. This value was
arrived at experimentally. Some platforms have higher variances. Make
this adjustable by adding the following flag:

-t N: tolerance (usec) for timestamp validation.

Signed-off-by: Jian Yang <jianyang@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/txtimestamp.c