Lines Matching refs:maxseg
368 u_int maxseg; in cc_conn_init() local
374 maxseg = tcp_maxseg(tp); in cc_conn_init()
398 tp->snd_ssthresh = max(2 * maxseg, metrics.hc_ssthresh); in cc_conn_init()
410 tp->snd_cwnd = maxseg; /* SYN(-ACK) lost */ in cc_conn_init()
412 tp->snd_cwnd = tcp_compute_initwnd(maxseg); in cc_conn_init()
1535 u_int maxseg = 0; in tcp_do_segment() local
2581 maxseg = tcp_maxseg(tp); in tcp_do_segment()
2649 sack_changed, &maxseg); in tcp_do_segment()
2663 tp->snd_cwnd += imax(maxseg, in tcp_do_segment()
2664 imin(2 * maxseg, in tcp_do_segment()
2672 tp->snd_cwnd += imax(maxseg, in tcp_do_segment()
2673 imin(2 * maxseg, in tcp_do_segment()
2676 tp->snd_cwnd += maxseg; in tcp_do_segment()
2684 (tcprexmtthresh - 1) * maxseg)) { in tcp_do_segment()
2734 (tp->snd_limited + 1) * maxseg); in tcp_do_segment()
2737 maxseg; in tcp_do_segment()
2754 maxseg; in tcp_do_segment()
2764 tp->snd_cwnd = maxseg; in tcp_do_segment()
2770 maxseg * in tcp_do_segment()
2806 maxseg - tcp_sack_adjust(tp); in tcp_do_segment()
2821 if (sent > maxseg) { in tcp_do_segment()
2824 (sent == maxseg + 1 && in tcp_do_segment()
2861 (maxseg = tcp_maxseg(tp))))) { in tcp_do_segment()
2884 sack_changed, &maxseg); in tcp_do_segment()
2889 &maxseg); in tcp_do_segment()
2904 &maxseg); in tcp_do_segment()
4077 u_int maxseg; in tcp_do_prr_ack() local
4084 maxseg = *maxsegp; in tcp_do_prr_ack()
4096 if (tp->sackhint.prr_delivered < (tcprexmtthresh * maxseg + in tcp_do_prr_ack()
4098 del_data = maxseg; in tcp_do_prr_ack()
4101 imin(INT_MAX / 65536, tp->t_dupacks) * maxseg); in tcp_do_prr_ack()
4113 tp->sackhint.prr_out + maxseg - 1; in tcp_do_prr_ack()
4131 maxseg; in tcp_do_prr_ack()
4135 snd_cnt = imax(snd_cnt, 0) / maxseg; in tcp_do_prr_ack()
4143 tp->snd_cwnd = pipe - del_data + (snd_cnt * maxseg); in tcp_do_prr_ack()
4146 (snd_cnt * maxseg); in tcp_do_prr_ack()
4149 tp->snd_cwnd = pipe - del_data + (snd_cnt * maxseg); in tcp_do_prr_ack()
4151 tp->snd_cwnd = imax(maxseg, tp->snd_cwnd); in tcp_do_prr_ack()
4165 u_int maxseg = tcp_maxseg(tp); in tcp_newreno_partial_ack() local
4177 tp->snd_cwnd = maxseg + BYTES_THIS_ACK(tp, th); in tcp_newreno_partial_ack()
4192 tp->snd_cwnd += maxseg; in tcp_newreno_partial_ack()
4214 tcp_compute_initwnd(uint32_t maxseg) in tcp_compute_initwnd() argument
4225 return min(V_tcp_initcwnd_segments * maxseg, in tcp_compute_initwnd()
4226 max(2 * maxseg, V_tcp_initcwnd_segments * 1460)); in tcp_compute_initwnd()
4228 return min(4 * maxseg, max(2 * maxseg, 4380)); in tcp_compute_initwnd()
4231 if (maxseg > 2190) in tcp_compute_initwnd()
4232 return (2 * maxseg); in tcp_compute_initwnd()
4233 else if (maxseg > 1095) in tcp_compute_initwnd()
4234 return (3 * maxseg); in tcp_compute_initwnd()
4236 return (4 * maxseg); in tcp_compute_initwnd()