Lines Matching full:ca

81 static void dctcp_reset(const struct tcp_sock *tp, struct dctcp *ca)  in dctcp_reset()  argument
83 ca->next_seq = tp->snd_nxt; in dctcp_reset()
85 ca->old_delivered = tp->delivered; in dctcp_reset()
86 ca->old_delivered_ce = tp->delivered_ce; in dctcp_reset()
96 struct dctcp *ca = inet_csk_ca(sk); in dctcp_init() local
98 ca->prior_rcv_nxt = tp->rcv_nxt; in dctcp_init()
100 ca->dctcp_alpha = min(dctcp_alpha_on_init, DCTCP_MAX_ALPHA); in dctcp_init()
102 ca->loss_cwnd = 0; in dctcp_init()
103 ca->ce_state = 0; in dctcp_init()
105 dctcp_reset(tp, ca); in dctcp_init()
106 tcp_plb_init(sk, &ca->plb); in dctcp_init()
120 struct dctcp *ca = inet_csk_ca(sk); in dctcp_ssthresh() local
123 ca->loss_cwnd = tcp_snd_cwnd(tp); in dctcp_ssthresh()
124 return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * ca->dctcp_alpha) >> 11U), 2U); in dctcp_ssthresh()
130 struct dctcp *ca = inet_csk_ca(sk); in dctcp_update_alpha() local
133 if (!before(tp->snd_una, ca->next_seq)) { in dctcp_update_alpha()
134 u32 delivered = tp->delivered - ca->old_delivered; in dctcp_update_alpha()
135 u32 delivered_ce = tp->delivered_ce - ca->old_delivered_ce; in dctcp_update_alpha()
136 u32 alpha = ca->dctcp_alpha; in dctcp_update_alpha()
148 tcp_plb_update_state(sk, &ca->plb, (int)ce_ratio); in dctcp_update_alpha()
149 tcp_plb_check_rehash(sk, &ca->plb); in dctcp_update_alpha()
169 WRITE_ONCE(ca->dctcp_alpha, alpha); in dctcp_update_alpha()
170 dctcp_reset(tp, ca); in dctcp_update_alpha()
176 struct dctcp *ca = inet_csk_ca(sk); in dctcp_react_to_loss() local
179 ca->loss_cwnd = tcp_snd_cwnd(tp); in dctcp_react_to_loss()
195 struct dctcp *ca = inet_csk_ca(sk); in dctcp_cwnd_event() local
200 dctcp_ece_ack_update(sk, ev, &ca->prior_rcv_nxt, &ca->ce_state); in dctcp_cwnd_event()
203 tcp_plb_update_state_upon_rto(sk, &ca->plb); in dctcp_cwnd_event()
207 tcp_plb_check_rehash(sk, &ca->plb); /* Maybe rehash when inflight is 0 */ in dctcp_cwnd_event()
218 const struct dctcp *ca = inet_csk_ca(sk); in dctcp_get_info() local
229 info->dctcp.dctcp_ce_state = (u16) ca->ce_state; in dctcp_get_info()
230 info->dctcp.dctcp_alpha = ca->dctcp_alpha; in dctcp_get_info()
232 (tp->delivered_ce - ca->old_delivered_ce); in dctcp_get_info()
234 (tp->delivered - ca->old_delivered); in dctcp_get_info()
245 const struct dctcp *ca = inet_csk_ca(sk); in dctcp_cwnd_undo() local
248 return max(tcp_snd_cwnd(tp), ca->loss_cwnd); in dctcp_cwnd_undo()