Skip to content

Commit a1e0783

Browse files
JasonXingMartin KaFai Lau
authored andcommitted
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]
1 parent d22b8b0 commit a1e0783

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/bpf/progs/setget_sockopt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ static const struct sockopt_test sol_tcp_tests[] = {
6161
{ .opt = TCP_NOTSENT_LOWAT, .new = 1314, .expected = 1314, },
6262
{ .opt = TCP_BPF_SOCK_OPS_CB_FLAGS, .new = BPF_SOCK_OPS_ALL_CB_FLAGS,
6363
.expected = BPF_SOCK_OPS_ALL_CB_FLAGS, },
64+
{ .opt = TCP_BPF_DELACK_MAX, .new = 30000, .expected = 30000, },
65+
{ .opt = TCP_BPF_RTO_MIN, .new = 30000, .expected = 30000, },
6466
{ .opt = TCP_RTO_MAX_MS, .new = 2000, .expected = 2000, },
6567
{ .opt = 0, },
6668
};

0 commit comments

Comments
 (0)