Lines Matching refs:tx_cwnd
76 u32 max_ratio = DIV_ROUND_UP(ccid2_hc_tx_sk(sk)->tx_cwnd, 2); in ccid2_change_l_ack_ratio()
106 if (dccp_feat_nn_get(sk, DCCPF_ACK_RATIO) > hc->tx_cwnd) in ccid2_check_l_ack_ratio()
107 ccid2_change_l_ack_ratio(sk, hc->tx_cwnd/2 ? : 1U); in ccid2_check_l_ack_ratio()
150 hc->tx_ssthresh = hc->tx_cwnd / 2; in ccid2_hc_tx_rto_expire()
153 hc->tx_cwnd = 1; in ccid2_hc_tx_rto_expire()
205 if (win_used < hc->tx_cwnd) { in ccid2_cwnd_application_limited()
207 (hc->tx_cwnd >> 1) + (hc->tx_cwnd >> 2)); in ccid2_cwnd_application_limited()
208 hc->tx_cwnd = (hc->tx_cwnd + win_used) >> 1; in ccid2_cwnd_application_limited()
220 u32 cwnd = hc->tx_cwnd, restart_cwnd, in ccid2_cwnd_restart()
231 hc->tx_cwnd = max(cwnd, restart_cwnd); in ccid2_cwnd_restart()
255 ccid2_update_used_window(hc, hc->tx_cwnd); in ccid2_hc_tx_packet_sent()
285 ccid2_pr_debug("cwnd=%d pipe=%d\n", hc->tx_cwnd, hc->tx_pipe); in ccid2_hc_tx_packet_sent()
311 if (hc->tx_arsent >= hc->tx_cwnd) { in ccid2_hc_tx_packet_sent()
323 denom = hc->tx_cwnd * hc->tx_cwnd / denom; in ccid2_hc_tx_packet_sent()
440 int r_seq_used = hc->tx_cwnd / dp->dccps_l_ack_ratio; in ccid2_new_ack()
442 if (hc->tx_cwnd < dp->dccps_l_seq_win && in ccid2_new_ack()
444 if (hc->tx_cwnd < hc->tx_ssthresh) { in ccid2_new_ack()
446 hc->tx_cwnd += 1; in ccid2_new_ack()
450 } else if (++hc->tx_packets_acked >= hc->tx_cwnd) { in ccid2_new_ack()
451 hc->tx_cwnd += 1; in ccid2_new_ack()
465 if (hc->tx_cwnd * CCID2_WIN_CHANGE_FACTOR >= dp->dccps_l_seq_win) in ccid2_new_ack()
467 else if (hc->tx_cwnd * CCID2_WIN_CHANGE_FACTOR < dp->dccps_l_seq_win/2) in ccid2_new_ack()
492 hc->tx_cwnd = hc->tx_cwnd / 2 ? : 1U; in ccid2_congestion_event()
493 hc->tx_ssthresh = max(hc->tx_cwnd, 2U); in ccid2_congestion_event()
586 if (hc->tx_cwnd < hc->tx_ssthresh) in ccid2_hc_tx_packet_recv()
729 hc->tx_cwnd = rfc3390_bytes_to_packets(dp->dccps_mss_cache); in ccid2_hc_tx_init()
730 hc->tx_expected_wnd = hc->tx_cwnd; in ccid2_hc_tx_init()
733 max_ratio = DIV_ROUND_UP(hc->tx_cwnd, 2); in ccid2_hc_tx_init()