| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_dctcp.c | 114 ca->loss_cwnd = tp->snd_cwnd; 115 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->dctcp_alpha) >> 11U), 2U); in BPF_PROG() 153 ca->loss_cwnd = tp->snd_cwnd; 154 tp->snd_ssthresh = max(tp->snd_cwnd >> 1U, 2U); in dctcp_react_to_loss() 228 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd);
|
| H A D | bpf_cubic.c | 405 bictcp_update(ca, tp->snd_cwnd, acked); in BPF_PROG() 418 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in BPF_PROG() 419 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in BPF_PROG() 422 ca->last_max_cwnd = tp->snd_cwnd; in BPF_PROG() 424 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in BPF_PROG() 483 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update() 498 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update() 532 tp->snd_cwnd >= hystart_low_window) in BPF_PROG()
|
| H A D | bpf_cc_cubic.c | 50 * [1] : Normal Slow Start condition is (tp->snd_cwnd < tp->snd_ssthresh) in tcp_update_pacing_rate() 51 * If snd_cwnd >= (tp->snd_ssthresh / 2), we are approaching in tcp_update_pacing_rate() 54 if (tp->snd_cwnd < tp->snd_ssthresh / 2) in tcp_update_pacing_rate() 59 rate *= max(tp->snd_cwnd, tp->packets_out); in tcp_update_pacing_rate() 92 tp->snd_cwnd = pkts_in_flight + sndcnt; in tcp_cwnd_reduction() 131 tp->snd_cwnd = tp->snd_ssthresh; in BPF_PROG()
|
| H A D | tcp_ca_write_sk_pacing.c | 38 ((tp->snd_cwnd * tp->mss_cache * USEC_PER_SEC) << 3) / in BPF_PROG() 53 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
|
| H A D | bpf_tracing_net.h | 185 return tp->snd_cwnd < tp->snd_ssthresh; in tcp_in_slow_start() 194 return tp->snd_cwnd < 2 * tp->max_packets_out; in tcp_is_cwnd_limited()
|
| H A D | tcp_ca_untrusted_btf_write.c | 19 tp->snd_cwnd = 1; in BPF_PROG()
|
| H A D | tcp_ca_incompl_cong_ops.c | 18 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
|
| H A D | tcp_ca_update.c | 39 return tcp_sk(sk)->snd_cwnd; in BPF_PROG()
|
| H A D | verifier_sock.c | 502 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)) in no_null_check_on_ret_2() 507 __description("bpf_tcp_sock(skb->sk): tp->snd_cwnd") in no_null_check_on_ret_2() 525 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)) in skb_sk_tp_snd_cwnd_1() 577 __description("bpf_tcp_sock(bpf_sk_fullsock(skb->sk)): tp->snd_cwnd") in skb_sk_beyond_last_field_2() 600 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)) in skb_sk_tp_snd_cwnd_2()
|
| H A D | test_sock_fields.c | 91 dst->snd_cwnd = src->snd_cwnd; in tpcpy()
|
| H A D | bpf_iter_tcp4.c | 139 tp->snd_cwnd, in dump_tcp_sock()
|
| H A D | verifier_ref_tracking.c | 1157 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)), in __flag() 1322 __description("reference tracking: tp->snd_cwnd after bpf_sk_fullsock(sk) and bpf_tcp_sock(sk)") 1350 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)), in and_bpf_tcp_sock_sk()
|
| H A D | bpf_iter_tcp6.c | 143 tp->tcp.snd_cwnd, in dump_tcp6_sock()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sock_fields.c | 92 tp->snd_cwnd, tp->srtt_us, tp->rtt_min, tp->snd_ssthresh, in print_tp() 188 srv_tp.snd_cwnd != 10 || in check_result() 196 cli_tp.snd_cwnd != 10 || in check_result()
|
| /linux/net/ipv4/ |
| H A D | bpf_tcp_ca.c | 88 case offsetof(struct tcp_sock, snd_cwnd): in bpf_tcp_ca_btf_struct_access() 89 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access()
|
| /linux/samples/bpf/ |
| H A D | hbm_kern.h | 94 pkti->cwnd = tp->snd_cwnd; in get_tcp_info()
|
| /linux/include/linux/ |
| H A D | tcp.h | 225 u32 snd_cwnd; /* Sending congestion window */ member
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 6566 __u32 snd_cwnd; /* Sending congestion window */ member 7032 __u32 snd_cwnd; member
|
| /linux/include/uapi/linux/ |
| H A D | bpf.h | 6566 __u32 snd_cwnd; /* Sending congestion window */ member 7032 __u32 snd_cwnd; member
|
| /linux/net/core/ |
| H A D | filter.c | 7655 case offsetof(struct bpf_tcp_sock, snd_cwnd): in bpf_tcp_sock_convert_ctx_access() 7656 BPF_TCP_SOCK_GET_COMMON(snd_cwnd); in bpf_tcp_sock_convert_ctx_access() 11131 case offsetof(struct bpf_sock_ops, snd_cwnd): in sock_ops_convert_ctx_access() 11132 SOCK_OPS_GET_TCP_SOCK_FIELD(snd_cwnd); in sock_ops_convert_ctx_access()
|