OSDN Git Service

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)
commit96539f1c5efb0022b94412e8623722aad23dee6b
tree353695bb8ceea2d0b01a0390e43c25b5901291a5
parent7651910257c8fb1ec76b50bef0330fcf739105c7
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