selftest/bpf: Make xsk tests less verbose
authorMagnus Karlsson <magnus.karlsson@intel.com>
Tue, 23 Feb 2021 16:23:01 +0000 (16:23 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 20:08:48 +0000 (12:08 -0800)
commitecde60614d5ed60fde1c80b38b71582a3ea2e662
tree5eb3a48bcb94852c0ad67c178c1db36112b53e51
parente6ac593372aadacc14e02b198e4a1acfef1db595
selftest/bpf: Make xsk tests less verbose

Make the xsk tests less verbose by only printing the
essentials. Currently, it is hard to see if the tests passed or not
due to all the printouts. Move the extra printouts to a verbose
option, if further debugging is needed when a problem arises.

To run the xsk tests with verbose output:
./test_xsk.sh -v

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/bpf/20210223162304.7450-2-ciara.loftus@intel.com
tools/testing/selftests/bpf/test_xsk.sh
tools/testing/selftests/bpf/xdpxceiver.c
tools/testing/selftests/bpf/xdpxceiver.h
tools/testing/selftests/bpf/xsk_prereqs.sh