Lines Matching refs:maxseg
1960 bbr_log_msgsize_fail(struct tcp_bbr *bbr, struct tcpcb *tp, uint32_t len, uint32_t maxseg, uint32_t… in bbr_log_msgsize_fail() argument
1967 log.u_bbr.flex2 = maxseg; in bbr_log_msgsize_fail()
2570 …_bbr *bbr, uint32_t cts, uint32_t tsosz, uint32_t tls, uint32_t old_val, uint32_t maxseg, int hdwr) in bbr_log_type_tsosize() argument
2581 log.u_bbr.flex6 = maxseg; in bbr_log_type_tsosize()
3533 uint32_t seg_oh, num_segs, maxseg; in bbr_get_pacing_delay() local
3538 maxseg = bbr->rc_tp->t_maxseg - bbr->rc_last_options; in bbr_get_pacing_delay()
3539 num_segs = (len + maxseg - 1) / maxseg; in bbr_get_pacing_delay()
3587 uint32_t cwnd, target_cwnd, saved_bytes, maxseg; in bbr_ack_received() local
3623 maxseg = tp->t_maxseg - bbr->rc_last_options; in bbr_ack_received()
3632 if ((bytes_this_ack < maxseg) && bbr->rc_use_google) in bbr_ack_received()
3633 bytes_this_ack = maxseg; in bbr_ack_received()
3664 if (cwnd < maxseg) in bbr_ack_received()
3665 cwnd = maxseg; in bbr_ack_received()
3667 cwnd = maxseg; in bbr_ack_received()
3698 if (bytes_this_ack > maxseg) in bbr_ack_received()
3699 bytes_this_ack = maxseg; in bbr_ack_received()
3793 uint32_t maxseg, newcwnd, acks_inflight, ratio, cwnd; in bbr_post_recovery() local
3828 maxseg = tp->t_maxseg - bbr->rc_last_options; in bbr_post_recovery()
3839 acks_inflight = (flight / (maxseg * 2)); in bbr_post_recovery()
3851 newcwnd = roundup((cwnd - val), maxseg); in bbr_post_recovery()
3853 newcwnd = maxseg; in bbr_post_recovery()
3857 newcwnd = roundup((uint32_t)val, maxseg); in bbr_post_recovery()
3865 if ((newcwnd + (acks_inflight * maxseg)) < get_min_cwnd(bbr)) { in bbr_post_recovery()
3873 if (newcwnd < (bbr_drop_limit * maxseg)) { in bbr_post_recovery()
3874 newcwnd = bbr_drop_limit * maxseg; in bbr_post_recovery()
4151 uint32_t thresh, len, maxseg, t_rxtcur; in bbr_calc_thresh_tlp() local
4160 maxseg = tp->t_maxseg - bbr->rc_last_options; in bbr_calc_thresh_tlp()
4166 if (prsm && (len <= maxseg)) { in bbr_calc_thresh_tlp()
4181 } else if (len <= maxseg) { in bbr_calc_thresh_tlp()
4543 uint32_t maxseg; in bbr_timeout_tlp() local
4564 maxseg = tp->t_maxseg - bbr->rc_last_options; in bbr_timeout_tlp()
4580 if (amm > maxseg) { in bbr_timeout_tlp()
4581 amm = maxseg; in bbr_timeout_tlp()
4582 } else if ((amm < maxseg) && ((tp->t_flags & TF_NODELAY) == 0)) { in bbr_timeout_tlp()
4630 if ((rsm->r_end - rsm->r_start) > maxseg) { in bbr_timeout_tlp()
4645 bbr_clone_rsm(bbr, nrsm, rsm, (rsm->r_end - maxseg)); in bbr_timeout_tlp()
5561 uint32_t cur_delay, seg_sz, maxseg, new_tso, delta, hdwr_delay; in bbr_adjust_for_hw_pacing() local
5577 maxseg = bbr->rc_tp->t_maxseg - bbr->rc_last_options; in bbr_adjust_for_hw_pacing()
5579 maxseg = BBR_MIN_SEG - bbr->rc_last_options; in bbr_adjust_for_hw_pacing()
5588 hdwr_delay = bbr->r_ctl.rc_pace_max_segs / maxseg; in bbr_adjust_for_hw_pacing()
5595 (bbr->r_ctl.rc_pace_max_segs / maxseg), in bbr_adjust_for_hw_pacing()
5614 (bbr->r_ctl.rc_pace_max_segs/maxseg)); in bbr_adjust_for_hw_pacing()
5625 seg_sz *= maxseg; in bbr_adjust_for_hw_pacing()
5665 if (new_tso >= (PACE_MAX_IP_BYTES-maxseg)) in bbr_adjust_for_hw_pacing()
5666 new_tso = PACE_MAX_IP_BYTES - maxseg; in bbr_adjust_for_hw_pacing()
5669 bbr_log_type_tsosize(bbr, cts, new_tso, 0, bbr->r_ctl.rc_pace_max_segs, maxseg, 0); in bbr_adjust_for_hw_pacing()
5679 uint32_t maxseg, bytes; in tcp_bbr_tso_size_check() local
5742 maxseg = bbr->rc_tp->t_maxseg - bbr->rc_last_options; in tcp_bbr_tso_size_check()
5744 maxseg = BBR_MIN_SEG - bbr->rc_last_options; in tcp_bbr_tso_size_check()
5762 bbr->r_ctl.rc_pace_max_segs = maxseg; in tcp_bbr_tso_size_check()
5764 bbr_log_type_tsosize(bbr, cts, bbr->r_ctl.rc_pace_max_segs, tls_seg, old_tso, maxseg, 0); in tcp_bbr_tso_size_check()
5777 new_tso = maxseg; in tcp_bbr_tso_size_check()
5789 new_tso = bytes / maxseg; in tcp_bbr_tso_size_check()
5796 new_tso *= maxseg; in tcp_bbr_tso_size_check()
5798 new_tso = (PACE_MAX_IP_BYTES / maxseg) * maxseg; in tcp_bbr_tso_size_check()
5807 if (tso_len > maxseg) { in tcp_bbr_tso_size_check()
5808 new_tso = tso_len / maxseg; in tcp_bbr_tso_size_check()
5811 new_tso *= maxseg; in tcp_bbr_tso_size_check()
5828 new_tso = rounddown(PACE_MAX_IP_BYTES, maxseg); in tcp_bbr_tso_size_check()
5844 new_tso = roundup(bw, (uint64_t)maxseg); in tcp_bbr_tso_size_check()
5850 if (new_tso < (bbr->r_ctl.bbr_hptsi_segments_max * maxseg)) in tcp_bbr_tso_size_check()
5851 new_tso = (bbr->r_ctl.bbr_hptsi_segments_max * maxseg); in tcp_bbr_tso_size_check()
5853 …if (bbr->r_ctl.bbr_hptsi_segments_floor && (new_tso < (maxseg * bbr->r_ctl.bbr_hptsi_segments_floo… in tcp_bbr_tso_size_check()
5854 new_tso = maxseg * bbr->r_ctl.bbr_hptsi_segments_floor; in tcp_bbr_tso_size_check()
5856 new_tso = rounddown(PACE_MAX_IP_BYTES, maxseg); in tcp_bbr_tso_size_check()
5858 if (bbr->r_ctl.bbr_utter_max && (new_tso > (bbr->r_ctl.bbr_utter_max * maxseg))) { in tcp_bbr_tso_size_check()
5859 new_tso = bbr->r_ctl.bbr_utter_max * maxseg; in tcp_bbr_tso_size_check()
5863 bbr_log_type_tsosize(bbr, cts, new_tso, tls_seg, old_tso, maxseg, 0); in tcp_bbr_tso_size_check()
7294 uint32_t p_maxseg, maxseg, p_acked = 0; in bbr_log_ack() local
7306 maxseg = tp->t_maxseg - bbr->rc_last_options; in bbr_log_ack()
7307 p_maxseg = min(bbr->r_ctl.rc_pace_max_segs, maxseg); in bbr_log_ack()
8018 uint32_t maxseg; in bbr_collapsed_window() local
8022 maxseg = bbr->rc_tp->t_maxseg - bbr->rc_last_options; in bbr_collapsed_window()
8055 if ((res1 >= (maxseg/8)) && in bbr_collapsed_window()
8056 (res2 >= (maxseg/8))) { in bbr_collapsed_window()
11769 bbr_window_update_needed(struct tcpcb *tp, struct socket *so, uint32_t recwin, int32_t maxseg) in bbr_window_update_needed() argument
11798 if (adv >= (2 * maxseg) && in bbr_window_update_needed()
11801 so->so_rcv.sb_hiwat <= 8 * maxseg)) { in bbr_window_update_needed()
11850 uint32_t maxseg, pace_max_segs, p_maxseg; in bbr_output_wtime() local
11883 kern_prefetch(sb, &maxseg); in bbr_output_wtime()
11884 maxseg = tp->t_maxseg - bbr->rc_last_options; in bbr_output_wtime()
11885 if (bbr_minseg(bbr) < maxseg) { in bbr_output_wtime()
11890 p_maxseg = min(maxseg, pace_max_segs); in bbr_output_wtime()
11923 if ((bbr_window_update_needed(tp, so, recwin, maxseg) == 0) && in bbr_output_wtime()
12191 (len > maxseg)) { in bbr_output_wtime()
12192 len = maxseg; in bbr_output_wtime()
12200 min(len, maxseg)); in bbr_output_wtime()
12216 if ((bbr->rc_resends_use_tso == 0) && (len > maxseg)) in bbr_output_wtime()
12217 len = maxseg; in bbr_output_wtime()
12313 tlplen = maxseg; in bbr_output_wtime()
12353 if ((bbr->rc_resends_use_tso == 0) && (len > maxseg)) in bbr_output_wtime()
12354 len = maxseg; in bbr_output_wtime()
12491 bbr->r_ctl.rc_lost_bytes)) > (2 * maxseg)) && in bbr_output_wtime()
12509 bbr->r_ctl.rc_lost_bytes)) > (2 * maxseg)) && in bbr_output_wtime()
12596 (len > maxseg) && in bbr_output_wtime()
12672 if (bbr_window_update_needed(tp, so, recwin, maxseg)) in bbr_output_wtime()
12821 if (len >= maxseg) in bbr_output_wtime()
12951 maxseg = tp->t_maxseg - (ipoptlen + optlen); in bbr_output_wtime()
12952 p_maxseg = min(maxseg, pace_max_segs); in bbr_output_wtime()
12958 if (len > maxseg) { in bbr_output_wtime()
12992 moff = len % (uint32_t)maxseg; in bbr_output_wtime()
13001 if (len <= maxseg) { in bbr_output_wtime()
13002 len = maxseg; in bbr_output_wtime()
13021 len = maxseg; in bbr_output_wtime()
13074 if (len <= maxseg) in bbr_output_wtime()
13138 if (len > maxseg) in bbr_output_wtime()
13139 len = maxseg; in bbr_output_wtime()
13176 if (len <= maxseg) { in bbr_output_wtime()
13194 if (tso && len < maxseg) { in bbr_output_wtime()
13196 tp, len, maxseg); in bbr_output_wtime()
13355 recwin < maxseg))) in bbr_output_wtime()
13469 KASSERT(len > maxseg, in bbr_output_wtime()
13470 ("%s: len:%d <= tso_segsz:%d", __func__, len, maxseg)); in bbr_output_wtime()
13473 m->m_pkthdr.tso_segsz = maxseg; in bbr_output_wtime()
13492 log.u_bbr.flex3 = maxseg; in bbr_output_wtime()
13542 if (V_path_mtu_discovery && maxseg > V_tcp_minmss) in bbr_output_wtime()
13636 if (len >= maxseg) { in bbr_output_wtime()
13637 idx = (len / maxseg) + 3; in bbr_output_wtime()
13764 bbr->r_ctl.rc_lost_bytes)) - maxseg; in bbr_output_wtime()
13765 if (tp->snd_cwnd < maxseg) in bbr_output_wtime()
13766 tp->snd_cwnd = maxseg; in bbr_output_wtime()
13797 bbr_log_msgsize_fail(bbr, tp, len, maxseg, mtu, csum_flags, tso, cts); in bbr_output_wtime()
13813 bbr_log_msgsize_fail(bbr, tp, len, maxseg, mtu, 0, tso, cts); in bbr_output_wtime()
14050 uint32_t maxseg; in bbr_mtu_chg() local
14058 maxseg = tp->t_maxseg - bbr->rc_last_options; in bbr_mtu_chg()
14064 if ((rsm->r_end - rsm->r_start) > maxseg) { in bbr_mtu_chg()