]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Verify bpf-tcp-cc rejects TCP_NODELAY
authorKaFai Wan <kafai.wan@linux.dev>
Tue, 21 Apr 2026 15:58:04 +0000 (23:58 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 22 Apr 2026 19:59:49 +0000 (12:59 -0700)
commit2c7e33f1fc2e75fcfb4aa5d840bcd2e8b53c1847
treea34a7ef5dbb92baf3780719fb96fc4dca9db02f1
parent52b6b5334924d8f083a2abe8edeface9206e13ee
selftests/bpf: Verify bpf-tcp-cc rejects TCP_NODELAY

Add a bpf_tcp_ca selftest for the TCP_NODELAY restriction in
bpf-tcp-cc.

Update bpf_cubic to exercise init() and cwnd_event_tx_start(),
and check that both callbacks reject bpf_setsockopt(TCP_NODELAY)
with -EOPNOTSUPP.

Signed-off-by: KaFai Wan <kafai.wan@linux.dev>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260421155804.135786-5-kafai.wan@linux.dev
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
tools/testing/selftests/bpf/progs/bpf_cubic.c