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)
commit3411c5b6f8d6e08d98e606dcf74fc42e2f9d731f
tree95473ec30ee99a86de01e2abeb0c6636e4eb9cc3
parent061ff040710e9f6f043d1fa80b1b362d2845b17a
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