Lines Matching full:mss
112 * @min: minimum cwnd value (usually MSS)
136 * @mss: maximum segment size of transmission
139 * MSS every unique received ACK
141 * increased by MSS * MSS / CWND for every unique received ACK
143 static void batadv_tp_update_cwnd(struct batadv_tp_vars *tp_vars, u32 mss) in batadv_tp_update_cwnd() argument
150 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
157 ((mss * mss) << 6) / (tp_vars->cwnd << 3)); in batadv_tp_update_cwnd()
158 if (tp_vars->dec_cwnd < (mss << 3)) { in batadv_tp_update_cwnd()
163 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
484 * reset the cwnd to 3*MSS
635 size_t packet_len, mss; in batadv_tp_recv_ack() local
639 mss = BATADV_TP_PLEN; in batadv_tp_recv_ack()
704 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->ss_threshold, 3 * mss, in batadv_tp_recv_ack()
705 mss); in batadv_tp_recv_ack()
731 mss, mss); in batadv_tp_recv_ack()
739 mss); in batadv_tp_recv_ack()
745 if (recv_ack - atomic_read(&tp_vars->last_acked) >= mss) in batadv_tp_recv_ack()
746 batadv_tp_update_cwnd(tp_vars, mss); in batadv_tp_recv_ack()
835 * configured MTU, so use the soft_iface MTU as MSS. in batadv_tp_send()
994 /* initialise the CWND to 3*MSS (Section 3.1 in RFC5681). in batadv_tp_start()
995 * For batman-adv the MSS is the size of the payload received by the in batadv_tp_start()