Lines Matching refs:mss

172 #define	MSS_ROUNDUP(value, mss)		((((value) - 1) / (mss) + 1) * (mss))  argument
615 int mss = tcp->tcp_mss; in tcp_send() local
626 if (len < mss) { in tcp_send()
627 mss = len; in tcp_send()
636 if ((mp = allocb(mss + tcp->tcp_ip_hdr_len + in tcp_send()
641 bcopy(buf, mp->b_rptr, mss); in tcp_send()
642 mp->b_wptr = mp->b_rptr + mss; in tcp_send()
643 buf += mss; in tcp_send()
644 cnt += mss; in tcp_send()
645 len -= mss; in tcp_send()
1266 int mss; in tcp_connect() local
1354 mss = tcp->tcp_mss - tcp->tcp_hdr_len; in tcp_connect()
1355 tcp->tcp_rwnd = MAX(MSS_ROUNDUP(tcp->tcp_rwnd, mss), in tcp_connect()
1356 tcp_recv_hiwat_minmss * mss); in tcp_connect()
1956 uint32_t mss = tcp->tcp_mss; in tcp_rwnd_set() local
1971 rwnd = MAX(rwnd, tcp_recv_hiwat_minmss * mss); in tcp_rwnd_set()
1981 rwnd = MSS_ROUNDUP(old_max_rwnd, mss); in tcp_rwnd_set()
1991 (max_transmittable_rwnd % mss); in tcp_rwnd_set()
1992 if (rwnd < mss) in tcp_rwnd_set()
2025 uint32_t mss; in tcp_parse_options() local
2049 mss = BE16_TO_U16(up+2); in tcp_parse_options()
2051 tcpopt->tcp_opt_mss = mss; in tcp_parse_options()
2183 tcp_mss_set(tcp_t *tcp, uint32_t mss) in tcp_mss_set() argument
2189 if (mss < tcp_mss_min) in tcp_mss_set()
2190 mss = tcp_mss_min; in tcp_mss_set()
2191 if (mss > mss_max) in tcp_mss_set()
2192 mss = mss_max; in tcp_mss_set()
2198 if (mss < tcp->tcp_naglim || tcp->tcp_mss == tcp->tcp_naglim) in tcp_mss_set()
2199 tcp->tcp_naglim = mss; in tcp_mss_set()
2204 if ((mss << 2) > tcp->tcp_xmit_hiwater) in tcp_mss_set()
2205 tcp->tcp_xmit_hiwater = mss << 2; in tcp_mss_set()
2206 tcp->tcp_mss = mss; in tcp_mss_set()
2216 tcp->tcp_cwnd = MIN(tcp_slow_start_initial * mss, in tcp_mss_set()
2217 MIN(4 * mss, MAX(2 * mss, 4380 / mss * mss))); in tcp_mss_set()
2495 int32_t mss; in tcp_sack_rxmit() local
2508 mss = tcp->tcp_mss; in tcp_sack_rxmit()
2518 usable_swnd = mss; in tcp_sack_rxmit()
2554 usable_swnd = usable_swnd / mss; in tcp_sack_rxmit()
2556 MAX(usable_swnd * mss, mss); in tcp_sack_rxmit()
2566 if (seg_len > mss) in tcp_sack_rxmit()
2567 seg_len = mss; in tcp_sack_rxmit()
2625 int mss; in tcp_rput_data() local
2948 mss = tcp->tcp_mss; in tcp_rput_data()
3402 tcp->tcp_cwnd = mss; in tcp_rput_data()
3438 npkt = (MIN(tcp->tcp_cwnd, tcp->tcp_swnd) >> 1) / mss; in tcp_rput_data()
3439 tcp->tcp_cwnd_ssthresh = MAX(npkt, 2) * mss; in tcp_rput_data()
3440 tcp->tcp_cwnd = npkt * mss; in tcp_rput_data()
3509 tcp->tcp_cwnd += mss << in tcp_rput_data()
3532 tcp->tcp_swnd) >> 1) / mss; in tcp_rput_data()
3535 tcp->tcp_cwnd_ssthresh = npkt * mss; in tcp_rput_data()
3537 tcp->tcp_dupack_cnt) * mss; in tcp_rput_data()
3618 tcp->tcp_pipe -= mss; in tcp_rput_data()
3627 cwnd = tcp->tcp_cwnd + mss; in tcp_rput_data()
3739 tcp->tcp_pipe -= mss; in tcp_rput_data()
3755 tcp_dupack_fast_retransmit * mss; in tcp_rput_data()
3819 add = mss; in tcp_rput_data()
4135 if (snd_size > mss) in tcp_rput_data()
4136 snd_size = mss; in tcp_rput_data()
4183 tcp->tcp_cwnd -= mss << (tcp->tcp_dupack_cnt - 1); in tcp_rput_data()
4217 int32_t mss; in tcp_ss_rexmit() local
4234 mss = tcp->tcp_mss; in tcp_ss_rexmit()
4241 uint32_t cnt = mss; in tcp_ss_rexmit()
4302 uint32_t mss; in tcp_timer() local
4554 mss = tcp->tcp_snxt - tcp->tcp_suna; in tcp_timer()
4555 if (mss > tcp->tcp_mss) in tcp_timer()
4556 mss = tcp->tcp_mss; in tcp_timer()
4557 if (mss > tcp->tcp_swnd && tcp->tcp_swnd != 0) in tcp_timer()
4558 mss = tcp->tcp_swnd; in tcp_timer()
4564 mp = tcp_xmit_mp(tcp, mp, mss, NULL, NULL, tcp->tcp_suna, B_TRUE, &mss, in tcp_timer()
4570 UPDATE_MIB(tcp_mib.tcpRetransBytes, mss); in tcp_timer()
4621 int32_t mss; in tcp_wput_data() local
4717 mss = tcp->tcp_mss - opt_len; in tcp_wput_data()
4720 mss = tcp->tcp_mss; in tcp_wput_data()
4726 tcp->tcp_cwnd = MIN(tcp_slow_start_after_idle * mss, in tcp_wput_data()
4727 MIN(4 * mss, MAX(2 * mss, 4380 / mss * mss))); in tcp_wput_data()
4813 len = mss; in tcp_wput_data()