Lines Matching refs:cwnd
83 static inline void bictcp_update(struct bictcp *ca, u32 cwnd) in bictcp_update() argument
85 if (ca->last_cwnd == cwnd && in bictcp_update()
89 ca->last_cwnd = cwnd; in bictcp_update()
96 if (cwnd <= low_window) { in bictcp_update()
97 ca->cnt = cwnd; in bictcp_update()
102 if (cwnd < ca->last_max_cwnd) { in bictcp_update()
103 __u32 dist = (ca->last_max_cwnd - cwnd) in bictcp_update()
108 ca->cnt = cwnd / max_increment; in bictcp_update()
111 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update()
114 ca->cnt = cwnd / dist; in bictcp_update()
117 if (cwnd < ca->last_max_cwnd + BICTCP_B) in bictcp_update()
119 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update()
120 else if (cwnd < ca->last_max_cwnd + max_increment*(BICTCP_B-1)) in bictcp_update()
122 ca->cnt = (cwnd * (BICTCP_B-1)) in bictcp_update()
123 / (cwnd - ca->last_max_cwnd); in bictcp_update()
126 ca->cnt = cwnd / max_increment; in bictcp_update()