Lines Matching defs:mss

107 /* Calculate mss to advertise in SYN segment.
125 int mss = tp->advmss;
130 if (metric < mss) {
131 mss = metric;
132 tp->advmss = mss;
136 return (__u16)mss;
202 * be a multiple of mss if possible. We assume here that mss >= 1.
205 void tcp_select_initial_window(const struct sock *sk, int __space, __u32 mss,
217 /* Quantize space offering to a multiple of mss if possible. */
218 if (space > mss)
219 space = rounddown(space, mss);
235 *rcv_wnd = min(*rcv_wnd, init_rcv_wnd * mss);
443 u16 mss; /* 0 to disable */
630 if (unlikely(opts->mss)) {
633 opts->mss);
797 opts->mss = tcp_advertise_mss(sk);
851 unsigned int mss, struct sk_buff *skb,
877 opts->mss = mss;
1701 /* Calculate base mss without TCP options:
1737 int tcp_mss_to_mtu(struct sock *sk, int mss)
1743 mtu = mss +
1776 /* This function synchronize snd mss to current pmtu/exthdr set.
1778 tp->rx_opt.user_mss is mss set by user by TCP_MAXSEG. It does NOT counts
1781 tp->rx_opt.mss_clamp is mss negotiated at connection setup.
1782 It is minimum of user_mss and mss received with SYN.
1787 tp->mss_cache is current effective sending mss, including
1932 /* Update snd_sml if this skb is under mss
1933 * Note that a TSO packet might end with a sub-mss segment
1935 * if ((skb->len % mss) != 0)
2292 int mss = tcp_current_mss(sk);
2299 icsk->icsk_mtup.search_low = tcp_mss_to_mtu(sk, mss);
2508 * be resegmented into mss-sized pieces by tcp_write_xmit().
2661 * snd_up-64k-mss .. snd_up cannot be large. However, taking into
2875 int mss = tcp_current_mss(sk);
2883 if (skb && tcp_snd_wnd_test(tp, skb, mss)) {
2885 tcp_write_xmit(sk, mss, TCP_NAGLE_OFF, 2, GFP_ATOMIC);
2893 "invalid inflight: %u state %u cwnd %u mss %d\n",
2894 tp->packets_out, sk->sk_state, tcp_snd_cwnd(tp), mss);
2906 if ((pcount > 1) && (skb->len > (pcount - 1) * mss)) {
2908 (pcount - 1) * mss, mss,
2992 * space available and the free space is less than 1/2 mss,
3011 * a multiple of the mss when it is feasible to do so.
3027 int mss = icsk->icsk_ack.rcv_mss;
3037 if (unlikely(mss > full_space)) {
3038 mss = full_space;
3039 if (mss <= 0)
3062 /* if free space is less than mss estimate, or is below 1/16th
3066 * With large window, mss test triggers way too late in order
3069 if (free_space < (allowed_space >> 4) || free_space < mss)
3084 * 1<<rcv_wscale > mss.
3089 /* Get the largest window that is a nice multiple of mss.
3091 * If our current window offering is within 1 mss of the
3097 if (window <= free_space - mss || window > free_space)
3098 window = rounddown(free_space, mss);
3099 else if (mss == full_space &&
3117 if (free_space < (allowed_space >> 4) || free_space < mss ||
3647 int mss;
3677 mss = tcp_mss_clamp(tp, dst_metric_advmss(dst));
3700 tcp_header_size = tcp_synack_options(sk, req, mss, skb, &opts, md5,
4179 unsigned int mss = tcp_current_mss(sk);
4190 skb->len > mss) {
4191 seg_size = min(seg_size, mss);
4194 skb, seg_size, mss, GFP_ATOMIC))
4197 tcp_set_skb_tso_segs(skb, mss);