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)
commitd3239425351a219ec779488ffb125352449c4106
treec03ea0fe32ba69cf2daf42c8022d863dc043ba0b
parent3c2d19cb8d8f7459635b96e12c477d772508293b
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