Home
last modified time | relevance | path

Searched refs:TCP_CONGESTION (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_dctcp.c69 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
77 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
82 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
87 tcp_cdg_res = bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
89 bpf_getsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
Dsetget_sockopt.c60 { .opt = TCP_CONGESTION, },
208 if (t->opt == TCP_CONGESTION) { in bpf_test_tcp_sockopt()
213 if (!bpf_setsockopt(ctx, IPPROTO_TCP, TCP_CONGESTION, in bpf_test_tcp_sockopt()
216 if (bpf_getsockopt(ctx, IPPROTO_TCP, TCP_CONGESTION, old_cc, sizeof(old_cc))) in bpf_test_tcp_sockopt()
225 if (bpf_setsockopt(ctx, IPPROTO_TCP, TCP_CONGESTION, (void *)new_cc, in bpf_test_tcp_sockopt()
228 if (bpf_getsockopt(ctx, IPPROTO_TCP, TCP_CONGESTION, tmp_cc, sizeof(tmp_cc))) in bpf_test_tcp_sockopt()
232 if (bpf_setsockopt(ctx, IPPROTO_TCP, TCP_CONGESTION, old_cc, sizeof(old_cc))) in bpf_test_tcp_sockopt()
Dsockopt_qos_to_cc.c27 if (bpf_getsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) in sockopt_qos_to_cc()
34 if (bpf_setsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &cc_reno, in sockopt_qos_to_cc()
Dbpf_iter_setsockopt.c58 if (bpf_getsockopt(tp, SOL_TCP, TCP_CONGESTION, in change_tcp_cc()
68 bpf_setsockopt(tp, SOL_TCP, TCP_CONGESTION, dctcp_cc, sizeof(dctcp_cc)); in change_tcp_cc()
Dconnect4_prog.c56 if (bpf_getsockopt(ctx, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) in verify_cc()
74 if (bpf_setsockopt(ctx, SOL_TCP, TCP_CONGESTION, &reno, sizeof(reno))) in set_cc()
79 if (bpf_setsockopt(ctx, SOL_TCP, TCP_CONGESTION, &cubic, sizeof(cubic))) in set_cc()
Dsockopt_sk.c61 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
164 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
Dbpf_dctcp_release.c18 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_STRUCT_OPS()
Dbpf_tracing_net.h36 #define TCP_CONGESTION 13 macro
/linux-6.1.9/samples/bpf/
Dtcp_cong_kern.c59 rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_cong()
63 rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_cong()
Dtcp_basertt_kern.c48 n = bpf_getsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_basertt()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dsockopt_qos_to_cc.c21 err = getsockopt(sock_fd, SOL_TCP, TCP_CONGESTION, cc, &optlen); in run_setsockopt_test()
49 err = setsockopt(sock_fd, SOL_TCP, TCP_CONGESTION, &cc_cubic, in test_sockopt_qos_to_cc()
Dsockopt_sk.c145 err = setsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, strlen("nv")); in getsetsockopt()
153 err = getsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, &optlen); in getsetsockopt()
Dbpf_iter_setsockopt.c27 if (setsockopt(fds[i], SOL_TCP, TCP_CONGESTION, "bpf_cubic", in set_bpf_cubic()
42 if (getsockopt(fds[i], SOL_TCP, TCP_CONGESTION, in check_bpf_dctcp()
Dbpf_tcp_ca.c28 err = setsockopt(fd, IPPROTO_TCP, TCP_CONGESTION, tcp_ca, strlen(tcp_ca)); in settcpca()
298 err = getsockopt(srv_fd, SOL_TCP, TCP_CONGESTION, srv_cc, &cc_len); in test_dctcp_fallback()
/linux-6.1.9/include/uapi/linux/
Dtcp.h104 #define TCP_CONGESTION 13 /* Congestion control algorithm */ macro
/linux-6.1.9/tools/include/uapi/linux/
Dtcp.h104 #define TCP_CONGESTION 13 /* Congestion control algorithm */ macro
/linux-6.1.9/net/mptcp/
Dsockopt.c547 case TCP_CONGESTION: in mptcp_supported_sockopt()
805 case TCP_CONGESTION: in mptcp_setsockopt_sol_tcp()
1172 case TCP_CONGESTION: in mptcp_getsockopt_sol_tcp()
/linux-6.1.9/tools/testing/selftests/bpf/
Dnetwork_helpers.c300 setsockopt(fd, SOL_TCP, TCP_CONGESTION, opts->cc, in connect_to_fd_opts()
/linux-6.1.9/net/ipv4/
Dtcp.c3502 case TCP_CONGESTION: { in do_tcp_setsockopt()
4150 case TCP_CONGESTION: in do_tcp_getsockopt()
/linux-6.1.9/net/core/
Dfilter.c5132 return do_tcp_getsockopt(sk, SOL_TCP, TCP_CONGESTION, in sol_tcp_sockopt_congestion()
5165 ret = do_tcp_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in sol_tcp_sockopt_congestion()
5193 case TCP_CONGESTION: in sol_tcp_sockopt()
/linux-6.1.9/Documentation/networking/
Dip-sysctl.rst386 [see setsockopt(listenfd, SOL_TCP, TCP_CONGESTION, "name" ...) ]