Lines Matching defs:mss

109 /* Calculate mss to advertise in SYN segment.
127 int mss = tp->advmss;
132 if (metric < mss) {
133 mss = metric;
134 tp->advmss = mss;
138 return (__u16)mss;
204 * be a multiple of mss if possible. We assume here that mss >= 1.
207 void tcp_select_initial_window(const struct sock *sk, int __space, __u32 mss,
219 /* Quantize space offering to a multiple of mss if possible. */
220 if (space > mss)
221 space = rounddown(space, mss);
237 *rcv_wnd = min(*rcv_wnd, init_rcv_wnd * mss);
436 u16 mss; /* 0 to disable */
620 if (unlikely(opts->mss)) {
623 opts->mss);
787 opts->mss = tcp_advertise_mss(sk);
841 unsigned int mss, struct sk_buff *skb,
867 opts->mss = mss;
1700 /* Calculate base mss without TCP options:
1736 int tcp_mss_to_mtu(struct sock *sk, int mss)
1742 mtu = mss +
1775 /* This function synchronize snd mss to current pmtu/exthdr set.
1777 tp->rx_opt.user_mss is mss set by user by TCP_MAXSEG. It does NOT counts
1780 tp->rx_opt.mss_clamp is mss negotiated at connection setup.
1781 It is minimum of user_mss and mss received with SYN.
1786 tp->mss_cache is current effective sending mss, including
1931 /* Update snd_sml if this skb is under mss
1932 * Note that a TSO packet might end with a sub-mss segment
1934 * if ((skb->len % mss) != 0)
2287 int mss = tcp_current_mss(sk);
2294 icsk->icsk_mtup.search_low = tcp_mss_to_mtu(sk, mss);
2450 * be resegmented into mss-sized pieces by tcp_write_xmit().
2603 * snd_up-64k-mss .. snd_up cannot be large. However, taking into
2812 int mss = tcp_current_mss(sk);
2820 if (skb && tcp_snd_wnd_test(tp, skb, mss)) {
2822 tcp_write_xmit(sk, mss, TCP_NAGLE_OFF, 2, GFP_ATOMIC);
2830 "invalid inflight: %u state %u cwnd %u mss %d\n",
2831 tp->packets_out, sk->sk_state, tp->snd_cwnd, mss);
2843 if ((pcount > 1) && (skb->len > (pcount - 1) * mss)) {
2845 (pcount - 1) * mss, mss,
2929 * space available and the free space is less than 1/2 mss,
2948 * a multiple of the mss when it is feasible to do so.
2963 int mss = icsk->icsk_ack.rcv_mss;
2973 if (unlikely(mss > full_space)) {
2974 mss = full_space;
2975 if (mss <= 0)
2990 /* if free space is less than mss estimate, or is below 1/16th
2994 * With large window, mss test triggers way too late in order
2997 if (free_space < (allowed_space >> 4) || free_space < mss)
3012 * 1<<rcv_wscale > mss.
3017 /* Get the largest window that is a nice multiple of mss.
3019 * If our current window offering is within 1 mss of the
3025 if (window <= free_space - mss || window > free_space)
3026 window = rounddown(free_space, mss);
3027 else if (mss == full_space &&
3558 int mss;
3588 mss = tcp_mss_clamp(tp, dst_metric_advmss(dst));
3610 tcp_header_size = tcp_synack_options(sk, req, mss, skb, &opts, md5,
4077 unsigned int mss = tcp_current_mss(sk);
4088 skb->len > mss) {
4089 seg_size = min(seg_size, mss);
4092 skb, seg_size, mss, GFP_ATOMIC))
4095 tcp_set_skb_tso_segs(skb, mss);