selftests: net: udpgso_bench_rx/tx: Stop when wrong CLI args are provided
authorAndrei Gherzan <andrei.gherzan@canonical.com>
Wed, 1 Feb 2023 00:16:12 +0000 (00:16 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 2 Feb 2023 12:29:51 +0000 (13:29 +0100)
commitdb9b47ee9f5f375ab0c5daeb20321c75b4fa657d
treec343f6d62c621debb5fb527ebbcb11a30450ac1c
parentc03c80e3a03ffb4f790901d60797e9810539d946
selftests: net: udpgso_bench_rx/tx: Stop when wrong CLI args are provided

Leaving unrecognized arguments buried in the output, can easily hide a
CLI/script typo. Avoid this by exiting when wrong arguments are provided to
the udpgso_bench test programs.

Fixes: 3a687bef148d ("selftests: udp gso benchmark")
Signed-off-by: Andrei Gherzan <andrei.gherzan@canonical.com>
Cc: Willem de Bruijn <willemb@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20230201001612.515730-2-andrei.gherzan@canonical.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/udpgso_bench_rx.c
tools/testing/selftests/net/udpgso_bench_tx.c