aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Xing <[email protected]>2025-03-12 15:35:23 +0000
committerMartin KaFai Lau <[email protected]>2025-03-13 21:42:53 +0000
commita1e0783e1036ac33a08bdb6b88e671e267c332aa (patch)
tree4b89d6d9169df7a9721c91faf6835909ebbfca78
parenttcp: bpf: Support bpf_getsockopt for TCP_BPF_DELACK_MAX (diff)
downloadkernel-a1e0783e1036ac33a08bdb6b88e671e267c332aa.tar.gz
kernel-a1e0783e1036ac33a08bdb6b88e671e267c332aa.zip
selftests/bpf: Add bpf_getsockopt() for TCP_BPF_DELACK_MAX and TCP_BPF_RTO_MIN
Add selftests for TCP_BPF_DELACK_MAX and TCP_BPF_RTO_MIN BPF socket cases. Signed-off-by: Jason Xing <[email protected]> Signed-off-by: Martin KaFai Lau <[email protected]> Link: https://patch.msgid.link/[email protected]
-rw-r--r--tools/testing/selftests/bpf/progs/setget_sockopt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/setget_sockopt.c b/tools/testing/selftests/bpf/progs/setget_sockopt.c
index 106fe430f41b..0107a24b7522 100644
--- a/tools/testing/selftests/bpf/progs/setget_sockopt.c
+++ b/tools/testing/selftests/bpf/progs/setget_sockopt.c
@@ -61,6 +61,8 @@ static const struct sockopt_test sol_tcp_tests[] = {
{ .opt = TCP_NOTSENT_LOWAT, .new = 1314, .expected = 1314, },
{ .opt = TCP_BPF_SOCK_OPS_CB_FLAGS, .new = BPF_SOCK_OPS_ALL_CB_FLAGS,
.expected = BPF_SOCK_OPS_ALL_CB_FLAGS, },
+ { .opt = TCP_BPF_DELACK_MAX, .new = 30000, .expected = 30000, },
+ { .opt = TCP_BPF_RTO_MIN, .new = 30000, .expected = 30000, },
{ .opt = TCP_RTO_MAX_MS, .new = 2000, .expected = 2000, },
{ .opt = 0, },
};