Lines Matching defs:mss
171 /* Round up the value to the nearest mss. */
172 #define MSS_ROUNDUP(value, mss) ((((value) - 1) / (mss) + 1) * (mss))
615 int mss = tcp->tcp_mss;
626 if (len < mss) {
627 mss = len;
636 if ((mp = allocb(mss + tcp->tcp_ip_hdr_len +
641 bcopy(buf, mp->b_rptr, mss);
642 mp->b_wptr = mp->b_rptr + mss;
643 buf += mss;
644 cnt += mss;
645 len -= mss;
1266 int mss;
1354 mss = tcp->tcp_mss - tcp->tcp_hdr_len;
1355 tcp->tcp_rwnd = MAX(MSS_ROUNDUP(tcp->tcp_rwnd, mss),
1356 tcp_recv_hiwat_minmss * mss);
1950 * XXX - Should allow a lower rwnd than tcp_recv_hiwat_minmss * mss if the
1956 uint32_t mss = tcp->tcp_mss;
1971 rwnd = MAX(rwnd, tcp_recv_hiwat_minmss * mss);
1981 rwnd = MSS_ROUNDUP(old_max_rwnd, mss);
1991 (max_transmittable_rwnd % mss);
1992 if (rwnd < mss)
2025 uint32_t mss;
2049 mss = BE16_TO_U16(up+2);
2051 tcpopt->tcp_opt_mss = mss;
2171 * Set the mss associated with a particular tcp based on its current value,
2173 * other state variables that we want to view as multiples of mss.
2183 tcp_mss_set(tcp_t *tcp, uint32_t mss)
2189 if (mss < tcp_mss_min)
2190 mss = tcp_mss_min;
2191 if (mss > mss_max)
2192 mss = mss_max;
2195 * a non-mss value, force naglim to track mss.
2198 if (mss < tcp->tcp_naglim || tcp->tcp_mss == tcp->tcp_naglim)
2199 tcp->tcp_naglim = mss;
2204 if ((mss << 2) > tcp->tcp_xmit_hiwater)
2205 tcp->tcp_xmit_hiwater = mss << 2;
2206 tcp->tcp_mss = mss;
2210 * of the initial cwnd. Now, when tcp_slow_start_initial * mss
2212 * the draft, we use tcp_slow_start_initial * mss as the cwnd.
2216 tcp->tcp_cwnd = MIN(tcp_slow_start_initial * mss,
2217 MIN(4 * mss, MAX(2 * mss, 4380 / mss * mss)));
2495 int32_t mss;
2508 mss = tcp->tcp_mss;
2518 usable_swnd = mss;
2554 usable_swnd = usable_swnd / mss;
2556 MAX(usable_swnd * mss, mss);
2566 if (seg_len > mss)
2567 seg_len = mss;
2625 int mss;
2948 mss = tcp->tcp_mss;
3402 tcp->tcp_cwnd = mss;
3438 npkt = (MIN(tcp->tcp_cwnd, tcp->tcp_swnd) >> 1) / mss;
3439 tcp->tcp_cwnd_ssthresh = MAX(npkt, 2) * mss;
3440 tcp->tcp_cwnd = npkt * mss;
3509 tcp->tcp_cwnd += mss <<
3532 tcp->tcp_swnd) >> 1) / mss;
3535 tcp->tcp_cwnd_ssthresh = npkt * mss;
3537 tcp->tcp_dupack_cnt) * mss;
3618 tcp->tcp_pipe -= mss;
3627 cwnd = tcp->tcp_cwnd + mss;
3739 tcp->tcp_pipe -= mss;
3755 tcp_dupack_fast_retransmit * mss;
3819 add = mss;
4135 if (snd_size > mss)
4136 snd_size = mss;
4183 tcp->tcp_cwnd -= mss << (tcp->tcp_dupack_cnt - 1);
4217 int32_t mss;
4234 mss = tcp->tcp_mss;
4241 uint32_t cnt = mss;
4302 uint32_t mss;
4554 mss = tcp->tcp_snxt - tcp->tcp_suna;
4555 if (mss > tcp->tcp_mss)
4556 mss = tcp->tcp_mss;
4557 if (mss > tcp->tcp_swnd && tcp->tcp_swnd != 0)
4558 mss = tcp->tcp_swnd;
4564 mp = tcp_xmit_mp(tcp, mp, mss, NULL, NULL, tcp->tcp_suna, B_TRUE, &mss,
4570 UPDATE_MIB(tcp_mib.tcpRetransBytes, mss);
4621 int32_t mss;
4717 mss = tcp->tcp_mss - opt_len;
4720 mss = tcp->tcp_mss;
4726 tcp->tcp_cwnd = MIN(tcp_slow_start_after_idle * mss,
4727 MIN(4 * mss, MAX(2 * mss, 4380 / mss * mss)));
4813 len = mss;