Home
last modified time | relevance | path

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

/linux-6.1.9/net/batman-adv/
Dtp_meter.c143 static void batadv_tp_update_cwnd(struct batadv_tp_vars *tp_vars, u32 mss) in batadv_tp_update_cwnd() argument
145 spin_lock_bh(&tp_vars->cwnd_lock); in batadv_tp_update_cwnd()
148 if (tp_vars->cwnd <= tp_vars->ss_threshold) { in batadv_tp_update_cwnd()
149 tp_vars->dec_cwnd = 0; in batadv_tp_update_cwnd()
150 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd()
151 spin_unlock_bh(&tp_vars->cwnd_lock); in batadv_tp_update_cwnd()
156 tp_vars->dec_cwnd += max_t(u32, 1U << 3, 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()
159 spin_unlock_bh(&tp_vars->cwnd_lock); in batadv_tp_update_cwnd()
[all …]