selftests: xsk: introduce validation functions
authorMagnus Karlsson <magnus.karlsson@intel.com>
Tue, 10 May 2022 11:56:02 +0000 (13:56 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 11 May 2022 15:03:16 +0000 (08:03 -0700)
commit76c576638f5d8dcfd86df4dcb0641133a662b4d5
treedf0d705faa6397850795af93ba7e451ed84200ac
parentd41cb6c47474484c647933702e9fa8fb5054cdf2
selftests: xsk: introduce validation functions

Introduce validation functions that can be optionally called by the Rx
and Tx threads. These are then used to replace the Rx and Tx stats
dispatchers. This so that we in the next commit can make the stats
tests proper normal tests and not be some special case, as today.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/r/20220510115604.8717-8-magnus.karlsson@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/xdpxceiver.c
tools/testing/selftests/bpf/xdpxceiver.h