]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: xsk: Validate tx stats on tx thread
authorMagnus Karlsson <magnus.karlsson@intel.com>
Wed, 25 Aug 2021 09:37:16 +0000 (11:37 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 25 Aug 2021 19:23:02 +0000 (12:23 -0700)
commit970a54ed91f1b3ec1b7a371b4e6127409300cf8e
tree0ca86d41e0f746579a4e8082d484e4d166c73a4a
parent3c2733e725f0c08999583ec67f173a4cb245394e
selftests: xsk: Validate tx stats on tx thread

Validate the tx stats on the Tx thread instead of the Rx
thread. Depending on your settings, you might not be allowed to query
the statistics of a socket you do not own, so better to do this on the
correct thread to start with.

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