Lines Matching refs:cwnd
109 * batadv_tp_cwnd() - compute the new cwnd size
110 * @base: base cwnd size value
112 * @min: minimum cwnd value (usually MSS)
114 * Return the new cwnd size and ensure it does not exceed the Advertised
148 if (tp_vars->cwnd <= tp_vars->ss_threshold) {
150 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss);
157 ((mss * mss) << 6) / (tp_vars->cwnd << 3));
163 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss);
416 "Final values: cwnd=%u ss_threshold=%u\n",
417 tp_vars->cwnd, tp_vars->ss_threshold);
483 * Switch to Slow Start, set the ss_threshold to half of the current cwnd and
484 * reset the cwnd to 3*MSS
508 tp_vars->ss_threshold = tp_vars->cwnd >> 1;
513 "Meter: RTO fired during test towards %pM! cwnd=%u new ss_thr=%u, resetting last_sent to %u\n",
514 tp_vars->other_end, tp_vars->cwnd, tp_vars->ss_threshold,
517 tp_vars->cwnd = BATADV_TP_PLEN * 3;
636 u32 rtt, recv_ack, cwnd;
699 tp_vars->ss_threshold = tp_vars->cwnd >> 1;
701 "Meter: Fast Recovery, (cur cwnd=%u) ss_thr=%u last_sent=%u recv_ack=%u\n",
702 tp_vars->cwnd, tp_vars->ss_threshold,
704 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 3 * mss,
730 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd,
734 /* set cwnd to the value of ss_threshold at the
738 cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 0,
740 tp_vars->cwnd = cwnd;
771 win_limit = atomic_read(&tp_vars->last_acked) + tp_vars->cwnd;
998 tp_vars->cwnd = BATADV_TP_PLEN * 3;