Searched refs:tcp_ca (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_tcp_ca.c | 23 static int settcpca(int fd, const char *tcp_ca) in settcpca() argument 27 err = setsockopt(fd, IPPROTO_TCP, TCP_CONGESTION, tcp_ca, strlen(tcp_ca)); in settcpca() 79 static void do_test(const char *tcp_ca, const struct bpf_map *sk_stg_map) in do_test() argument 101 if (settcpca(lfd, tcp_ca) || settcpca(fd, tcp_ca) || in do_test()
|
/Linux-v5.15/net/ipv4/ |
D | bpf_tcp_ca.c | 275 struct tcp_congestion_ops *tcp_ca; in bpf_tcp_ca_init_member() local 280 tcp_ca = (struct tcp_congestion_ops *)kdata; in bpf_tcp_ca_init_member() 287 tcp_ca->flags = utcp_ca->flags; in bpf_tcp_ca_init_member() 290 if (bpf_obj_name_cpy(tcp_ca->name, utcp_ca->name, in bpf_tcp_ca_init_member() 291 sizeof(tcp_ca->name)) <= 0) in bpf_tcp_ca_init_member()
|