]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: xsk: Remove mutex and condition variable
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 29 Mar 2021 22:43:15 +0000 (00:43 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 30 Mar 2021 16:24:40 +0000 (09:24 -0700)
commit3c7f7624850813bd8fa38df286fd1c6b48f6be90
tree353695bb8ceea2d0b01a0390e43c25b5901291a5
parentbfff6a9a231b09502933c13e5ca4a4201bd56c29
selftests: xsk: Remove mutex and condition variable

The usage of the condition variable is broken, and overkill. Replace it
with a pthread barrier.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210329224316.17793-17-maciej.fijalkowski@intel.com
tools/testing/selftests/bpf/xdpxceiver.c
tools/testing/selftests/bpf/xdpxceiver.h