mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
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 <kerneljasonxing@gmail.com> Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://patch.msgid.link/20250312153523.9860-5-kerneljasonxing@gmail.com
This commit is contained in:
parent
d22b8b04b8
commit
a1e0783e10
|
|
@ -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, },
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user