]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Fix the if conditions of in test_extra_filter()
authorWang Yufen <wangyufen@huawei.com>
Fri, 23 Sep 2022 07:02:37 +0000 (15:02 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 27 Sep 2022 09:00:02 +0000 (11:00 +0200)
commitcab75cbb2776944e15833d1c506a40b8afe464d1
tree83d238648eb98980f1104e9b8f3f81c78e74a708
parent91b59f027964813c98b52e15b9afa2726a801188
selftests: Fix the if conditions of in test_extra_filter()

The socket 2 bind the addr in use, bind should fail with EADDRINUSE. So
if bind success or errno != EADDRINUSE, testcase should be failed.

Fixes: 2bc848386d90 ("soreuseport: BPF selection functional test")
Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Link: https://lore.kernel.org/r/1663916557-10730-1-git-send-email-wangyufen@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/reuseport_bpf.c