Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
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_dctcp.c67 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
72 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
75 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
78 tcp_cdg_res = bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
80 bpf_getsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
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.c57 if (bpf_getsockopt(ctx, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) in verify_cc()
75 if (bpf_setsockopt(ctx, SOL_TCP, TCP_CONGESTION, &reno, sizeof(reno))) in set_cc()
80 if (bpf_setsockopt(ctx, SOL_TCP, TCP_CONGESTION, &cubic, sizeof(cubic))) in set_cc()
Dbpf_dctcp_release.c18 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_STRUCT_OPS()
Dsockopt_sk.c67 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
175 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
Dbpf_tracing_net.h13 #define TCP_CONGESTION 13 macro
/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()
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()
Dsockopt_sk.c146 err = setsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, strlen("nv")); in getsetsockopt()
154 err = getsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, &optlen); in getsetsockopt()
Dbpf_tcp_ca.c27 err = setsockopt(fd, IPPROTO_TCP, TCP_CONGESTION, tcp_ca, strlen(tcp_ca)); in settcpca()
292 err = getsockopt(srv_fd, SOL_TCP, TCP_CONGESTION, srv_cc, &cc_len); in test_dctcp_fallback()
/tools/include/uapi/linux/
Dtcp.h104 #define TCP_CONGESTION 13 /* Congestion control algorithm */ macro
/tools/testing/selftests/bpf/
Dnetwork_helpers.c271 setsockopt(fd, SOL_TCP, TCP_CONGESTION, opts->cc, in connect_to_fd_opts()