selftests: txtimestamp: add new command-line flags.
authorJian Yang <jianyang@google.com>
Tue, 17 Mar 2020 19:25:07 +0000 (12:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 03:14:13 +0000 (20:14 -0700)
commit5090147c30232306fc9d13a384384cc763a7966d
tree226cc37d58b725d2ce12e96999d4de9c7996c1a1
parent70a7ee96da3354a879041b20e3214d08f2a9d465
selftests: txtimestamp: add new command-line flags.

A longer sleep duration between sendmsg()s makes more cachelines to be
evicted and results in higher latency. Making the duration configurable.

Add the following new flags:
-S: Configurable sleep duration.
-b: Busy loop instead of poll().

Remove the following flag:
-D: No delay between packets: subsumed by -S.

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