Lines Matching full:ca
69 static void dctcp_reset(const struct tcp_sock *tp, struct dctcp *ca) in dctcp_reset() argument
71 ca->next_seq = tp->snd_nxt; in dctcp_reset()
73 ca->old_delivered = tp->delivered; in dctcp_reset()
74 ca->old_delivered_ce = tp->delivered_ce; in dctcp_reset()
84 struct dctcp *ca = inet_csk_ca(sk); in dctcp_init() local
86 ca->prior_rcv_nxt = tp->rcv_nxt; in dctcp_init()
88 ca->dctcp_alpha = min(dctcp_alpha_on_init, DCTCP_MAX_ALPHA); in dctcp_init()
90 ca->loss_cwnd = 0; in dctcp_init()
91 ca->ce_state = 0; in dctcp_init()
93 dctcp_reset(tp, ca); in dctcp_init()
106 struct dctcp *ca = inet_csk_ca(sk); in dctcp_ssthresh() local
109 ca->loss_cwnd = tcp_snd_cwnd(tp); in dctcp_ssthresh()
110 return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * ca->dctcp_alpha) >> 11U), 2U); in dctcp_ssthresh()
116 struct dctcp *ca = inet_csk_ca(sk); in dctcp_update_alpha() local
119 if (!before(tp->snd_una, ca->next_seq)) { in dctcp_update_alpha()
120 u32 delivered_ce = tp->delivered_ce - ca->old_delivered_ce; in dctcp_update_alpha()
121 u32 alpha = ca->dctcp_alpha; in dctcp_update_alpha()
127 u32 delivered = tp->delivered - ca->old_delivered; in dctcp_update_alpha()
141 WRITE_ONCE(ca->dctcp_alpha, alpha); in dctcp_update_alpha()
142 dctcp_reset(tp, ca); in dctcp_update_alpha()
148 struct dctcp *ca = inet_csk_ca(sk); in dctcp_react_to_loss() local
151 ca->loss_cwnd = tcp_snd_cwnd(tp); in dctcp_react_to_loss()
167 struct dctcp *ca = inet_csk_ca(sk); in dctcp_cwnd_event() local
172 dctcp_ece_ack_update(sk, ev, &ca->prior_rcv_nxt, &ca->ce_state); in dctcp_cwnd_event()
186 const struct dctcp *ca = inet_csk_ca(sk); in dctcp_get_info() local
197 info->dctcp.dctcp_ce_state = (u16) ca->ce_state; in dctcp_get_info()
198 info->dctcp.dctcp_alpha = ca->dctcp_alpha; in dctcp_get_info()
200 (tp->delivered_ce - ca->old_delivered_ce); in dctcp_get_info()
202 (tp->delivered - ca->old_delivered); in dctcp_get_info()
213 const struct dctcp *ca = inet_csk_ca(sk); in dctcp_cwnd_undo() local
216 return max(tcp_snd_cwnd(tp), ca->loss_cwnd); in dctcp_cwnd_undo()