]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Check -EBUSY for the recurred bpf_setsockopt(TCP_CONGESTION)
authorMartin KaFai Lau <martin.lau@kernel.org>
Thu, 29 Sep 2022 07:04:07 +0000 (00:04 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 29 Sep 2022 16:25:47 +0000 (09:25 -0700)
commit3723c00bdbf4af6aa6dbd3336bb493e29f574ac8
tree95473ec30ee99a86de01e2abeb0c6636e4eb9cc3
parent2c41efbc895efc2829b1fa22eea473ac7c272c27
selftests/bpf: Check -EBUSY for the recurred bpf_setsockopt(TCP_CONGESTION)

This patch changes the bpf_dctcp test to ensure the recurred
bpf_setsockopt(TCP_CONGESTION) returns -EBUSY.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20220929070407.965581-6-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
tools/testing/selftests/bpf/progs/bpf_dctcp.c