]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: selftests: Add bind retry for post_bind{4, 6}
authorMenglong Dong <imagedong@tencent.com>
Thu, 6 Jan 2022 13:20:22 +0000 (21:20 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 7 Jan 2022 01:08:35 +0000 (17:08 -0800)
commit0c9e051f5138c95870eaea2a008b36aacc5d891b
tree1ec517c9838222412ef4540d32f05bfcc52e14ec
parent02244ec73d81d30a25d69279d5cbee3b4e5637f1
bpf: selftests: Add bind retry for post_bind{4, 6}

With previous patch, kernel is able to 'put_port' after sys_bind()
fails. Add the test for that case: rebind another port after
sys_bind() fails. If the bind success, it means previous bind
operation is already undoed.

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220106132022.3470772-4-imagedong@tencent.com
tools/testing/selftests/bpf/test_sock.c