Lines Matching refs:cwnd
108 * batadv_tp_cwnd() - compute the new cwnd size
109 * @base: base cwnd size value
111 * @min: minimum cwnd value (usually MSS)
113 * Return the new cwnd size and ensure it does not exceed the Advertised
147 if (tp_vars->cwnd <= tp_vars->ss_threshold) {
149 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss);
156 ((mss * mss) << 6) / (tp_vars->cwnd << 3));
162 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss);
415 "Final values: cwnd=%u ss_threshold=%u\n",
416 tp_vars->cwnd, tp_vars->ss_threshold);
482 * Switch to Slow Start, set the ss_threshold to half of the current cwnd and
483 * reset the cwnd to 3*MSS
507 tp_vars->ss_threshold = tp_vars->cwnd >> 1;
512 "Meter: RTO fired during test towards %pM! cwnd=%u new ss_thr=%u, resetting last_sent to %u\n",
513 tp_vars->other_end, tp_vars->cwnd, tp_vars->ss_threshold,
516 tp_vars->cwnd = BATADV_TP_PLEN * 3;
634 u32 rtt, recv_ack, cwnd;
698 tp_vars->ss_threshold = tp_vars->cwnd >> 1;
700 "Meter: Fast Recovery, (cur cwnd=%u) ss_thr=%u last_sent=%u recv_ack=%u\n",
701 tp_vars->cwnd, tp_vars->ss_threshold,
703 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 3 * mss,
729 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd,
733 /* set cwnd to the value of ss_threshold at the
737 cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 0,
739 tp_vars->cwnd = cwnd;
773 win_limit = atomic_read(&tp_vars->last_acked) + tp_vars->cwnd;
1002 tp_vars->cwnd = BATADV_TP_PLEN * 3;