]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/xsk: Make sure single threaded test terminates
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Thu, 1 Sep 2022 11:48:12 +0000 (13:48 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 2 Sep 2022 13:38:03 +0000 (15:38 +0200)
commit7e24e7df44cf0ceab8450cc1e34de199008dd619
treeb28c953ba80aee644f663ada90864b76c39392b7
parent6d19040f78d3a1ed48e3dfd4473745750e0e64db
selftests/xsk: Make sure single threaded test terminates

For single threaded poll tests call pthread_kill() from main thread so
that we are sure worker thread has finished its job and it is possible
to proceed with next test types from test suite. It was observed that on
some platforms it takes a bit longer for worker thread to exit and next
test case sees device as busy in this case.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20220901114813.16275-6-maciej.fijalkowski@intel.com
tools/testing/selftests/bpf/xskxceiver.c