Skip to content

Commit b6a4e1b

Browse files
JasonXingKernel Patches Daemon
authored and
Kernel Patches Daemon
committed
selftests: add bpf_set/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]>
1 parent 007c18a commit b6a4e1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
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 = 10000, .expected = 10000, },
65+
{ .opt = TCP_BPF_RTO_MIN, .new = 2000, .expected = 2000, },
6466
{ .opt = TCP_RTO_MAX_MS, .new = 2000, .expected = 2000, },
6567
{ .opt = 0, },
6668
};

0 commit comments

Comments
 (0)