]> 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)
commitaa8b83d53045a9c6dfb6cfd151411012800fc667
tree0ca86d41e0f746579a4e8082d484e4d166c73a4a
parentb3dbbeccf434c60115d8dcff8253f568d72aa7fb
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