]> 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)
commit30aaa7d08a9e7061d85bfe0ca487b28023d8805b
treeb28c953ba80aee644f663ada90864b76c39392b7
parent9f5d4d46e38a954e239779d64c3668dd27962b43
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