Lines Matching refs:mss
128 int mss = tp->advmss; in tcp_advertise_mss() local
133 if (metric < mss) { in tcp_advertise_mss()
134 mss = metric; in tcp_advertise_mss()
135 tp->advmss = mss; in tcp_advertise_mss()
139 return (__u16)mss; in tcp_advertise_mss()
193 u32 tcp_default_init_rwnd(u32 mss) in tcp_default_init_rwnd() argument
202 if (mss > 1460) in tcp_default_init_rwnd()
203 init_rwnd = max((1460 * init_rwnd) / mss, 2U); in tcp_default_init_rwnd()
214 void tcp_select_initial_window(int __space, __u32 mss, in tcp_select_initial_window() argument
227 if (space > mss) in tcp_select_initial_window()
228 space = (space / mss) * mss; in tcp_select_initial_window()
256 if (mss > (1 << *rcv_wscale)) { in tcp_select_initial_window()
258 init_rcv_wnd = tcp_default_init_rwnd(mss); in tcp_select_initial_window()
259 *rcv_wnd = min(*rcv_wnd, init_rcv_wnd * mss); in tcp_select_initial_window()
421 u16 mss; /* 0 to disable */ member
456 if (unlikely(opts->mss)) { in tcp_options_write()
459 opts->mss); in tcp_options_write()
559 opts->mss = tcp_advertise_mss(sk); in tcp_syn_options()
596 unsigned int mss, struct sk_buff *skb, in tcp_synack_options() argument
622 opts->mss = mss; in tcp_synack_options()
1323 int tcp_mss_to_mtu(struct sock *sk, int mss) in tcp_mss_to_mtu() argument
1329 mtu = mss + in tcp_mss_to_mtu()
2153 int mss = tcp_current_mss(sk); in tcp_send_loss_probe() local
2157 err = tcp_write_xmit(sk, mss, TCP_NAGLE_OFF, 2, GFP_ATOMIC); in tcp_send_loss_probe()
2177 if ((pcount > 1) && (skb->len > (pcount - 1) * mss)) { in tcp_send_loss_probe()
2178 if (unlikely(tcp_fragment(sk, skb, (pcount - 1) * mss, mss, in tcp_send_loss_probe()
2296 int mss = icsk->icsk_ack.rcv_mss; in __tcp_select_window() local
2302 if (unlikely(mss > full_space)) { in __tcp_select_window()
2303 mss = full_space; in __tcp_select_window()
2304 if (mss <= 0) in __tcp_select_window()
2326 if (free_space < (allowed_space >> 4) || free_space < mss) in __tcp_select_window()
2356 if (window <= free_space - mss || window > free_space) in __tcp_select_window()
2357 window = (free_space / mss) * mss; in __tcp_select_window()
2358 else if (mss == full_space && in __tcp_select_window()
2877 int mss; in tcp_make_synack() local
2890 mss = dst_metric_advmss(dst); in tcp_make_synack()
2891 if (tp->rx_opt.user_mss && tp->rx_opt.user_mss < mss) in tcp_make_synack()
2892 mss = tp->rx_opt.user_mss; in tcp_make_synack()
2901 tcp_header_size = tcp_synack_options(sk, req, mss, skb, &opts, &md5, in tcp_make_synack()
3305 unsigned int mss = tcp_current_mss(sk); in tcp_write_wakeup() local
3316 skb->len > mss) { in tcp_write_wakeup()
3317 seg_size = min(seg_size, mss); in tcp_write_wakeup()
3319 if (tcp_fragment(sk, skb, seg_size, mss, GFP_ATOMIC)) in tcp_write_wakeup()
3322 tcp_set_skb_tso_segs(sk, skb, mss); in tcp_write_wakeup()