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)
commitb04fdc4ce31fe5ae411737ec6705fcdfc493d6c8
tree0ca86d41e0f746579a4e8082d484e4d166c73a4a
parent0d41f59f458a4f08353f7aba64bbc6388a858265
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