Home
last modified time | relevance | path

Searched refs:BICTCP_BETA_SCALE (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/net/ipv4/
Dtcp_bic.c21 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation macro
170 ca->last_max_cwnd = (tcp_snd_cwnd(tp) * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh()
171 / (2 * BICTCP_BETA_SCALE); in bictcp_recalc_ssthresh()
178 return max((tcp_snd_cwnd(tp) * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
Dtcp_cubic.c34 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation macro
350 ca->last_max_cwnd = (tcp_snd_cwnd(tp) * (BICTCP_BETA_SCALE + beta)) in cubictcp_recalc_ssthresh()
351 / (2 * BICTCP_BETA_SCALE); in cubictcp_recalc_ssthresh()
355 return max((tcp_snd_cwnd(tp) * beta) / BICTCP_BETA_SCALE, 2U); in cubictcp_recalc_ssthresh()
516 beta_scale = 8*(BICTCP_BETA_SCALE+beta) / 3 in cubictcp_register()
517 / (BICTCP_BETA_SCALE - beta); in cubictcp_register()
/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c26 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation macro
53 static const __u32 beta_scale = 8*(BICTCP_BETA_SCALE+beta) / 3
54 / (BICTCP_BETA_SCALE - beta);
409 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in BPF_STRUCT_OPS()
410 / (2 * BICTCP_BETA_SCALE); in BPF_STRUCT_OPS()
414 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in BPF_STRUCT_OPS()