Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/net/ipv4/
H A Dtcp_bic.c21 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation macro
170 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh()
171 / (2 * BICTCP_BETA_SCALE); in bictcp_recalc_ssthresh()
178 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
H A Dtcp_cubic.c32 #define BICTCP_BETA_SCALE 1024 /* Scale factor beta calculation macro
357 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh()
358 / (2 * BICTCP_BETA_SCALE); in bictcp_recalc_ssthresh()
362 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh()
503 beta_scale = 8*(BICTCP_BETA_SCALE+beta) / 3 in cubictcp_register()
504 / (BICTCP_BETA_SCALE - beta); in cubictcp_register()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A 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);
415 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in BPF_STRUCT_OPS()
416 / (2 * BICTCP_BETA_SCALE); in BPF_STRUCT_OPS()
420 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in BPF_STRUCT_OPS()