]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1673b9c58546be0fb22ed039fe26e64be505ea52
treedf0d705faa6397850795af93ba7e451ed84200ac
parent717f5695633fd573450740b38e93ab188407e941
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