Home
last modified time | relevance | path

Searched refs:mss (Results 1 – 20 of 20) sorted by relevance

/net/ipv4/
Dtcp_offload.c18 unsigned int seq, unsigned int mss) in tcp_gso_tstamp() argument
21 if (before(ts_seq, seq + mss)) { in tcp_gso_tstamp()
28 seq += mss; in tcp_gso_tstamp()
64 unsigned int mss; in tcp_gso_segment() local
80 mss = skb_shinfo(skb)->gso_size; in tcp_gso_segment()
81 if (unlikely(skb->len <= mss)) in tcp_gso_segment()
104 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in tcp_gso_segment()
122 delta = htonl(oldlen + (thlen + mss)); in tcp_gso_segment()
129 tcp_gso_tstamp(segs, skb_shinfo(gso_skb)->tskey, seq, mss); in tcp_gso_segment()
141 seq += mss; in tcp_gso_segment()
[all …]
Dtcp_output.c125 int mss = tp->advmss; in tcp_advertise_mss() local
130 if (metric < mss) { in tcp_advertise_mss()
131 mss = metric; in tcp_advertise_mss()
132 tp->advmss = mss; in tcp_advertise_mss()
136 return (__u16)mss; in tcp_advertise_mss()
192 u32 tcp_default_init_rwnd(u32 mss) in tcp_default_init_rwnd() argument
201 if (mss > 1460) in tcp_default_init_rwnd()
202 init_rwnd = max((1460 * init_rwnd) / mss, 2U); in tcp_default_init_rwnd()
213 void tcp_select_initial_window(int __space, __u32 mss, in tcp_select_initial_window() argument
226 if (space > mss) in tcp_select_initial_window()
[all …]
Dsyncookies.c182 const __u16 mss = *mssp; in __cookie_v4_init_sequence() local
185 if (mss >= msstab[mssind]) in __cookie_v4_init_sequence()
310 int full_space, mss; in cookie_v4_check() local
321 mss = __cookie_v4_check(ip_hdr(skb), th, cookie); in cookie_v4_check()
322 if (mss == 0) { in cookie_v4_check()
346 req->mss = mss; in cookie_v4_check()
400 tcp_select_initial_window(full_space, req->mss, in cookie_v4_check()
Dtcp_timer.c130 int mss; in tcp_mtu_probing() local
132 mss = tcp_mtu_to_mss(sk, icsk->icsk_mtup.search_low) >> 1; in tcp_mtu_probing()
133 mss = min(net->ipv4.sysctl_tcp_base_mss, mss); in tcp_mtu_probing()
134 mss = max(mss, 68 - tp->tcp_header_len); in tcp_mtu_probing()
135 mss = max(mss, net->ipv4.sysctl_tcp_min_snd_mss); in tcp_mtu_probing()
136 icsk->icsk_mtup.search_low = tcp_mss_to_mtu(sk, mss); in tcp_mtu_probing()
Dtcp_metrics.c30 u16 mss; member
129 tm->tcpm_fastopen.mss = 0; in tcpm_suck_dst()
686 void tcp_fastopen_cache_get(struct sock *sk, u16 *mss, in tcp_fastopen_cache_get() argument
700 if (tfom->mss) in tcp_fastopen_cache_get()
701 *mss = tfom->mss; in tcp_fastopen_cache_get()
712 void tcp_fastopen_cache_set(struct sock *sk, u16 mss, in tcp_fastopen_cache_set() argument
727 if (mss) in tcp_fastopen_cache_set()
728 tfom->mss = mss; in tcp_fastopen_cache_set()
858 if (tfom->mss && in tcp_metrics_fill_info()
860 tfom->mss) < 0) in tcp_metrics_fill_info()
Dinet_lro.c173 lro_desc->mss = tcp_data_len; in lro_init_desc()
210 if (tcp_data_len > lro_desc->mss) in lro_add_common()
211 lro_desc->mss = tcp_data_len; in lro_add_common()
283 skb_shinfo(lro_desc->parent)->gso_size = lro_desc->mss; in lro_flush()
Dtcp_input.c396 u32 mss = tcp_sk(sk)->advmss; in tcp_fixup_rcvbuf() local
399 rcvmem = 2 * SKB_TRUESIZE(mss + MAX_TCP_HEADER) * in tcp_fixup_rcvbuf()
400 tcp_default_init_rwnd(mss); in tcp_fixup_rcvbuf()
1122 unsigned int mss; in tcp_match_skb_to_sack() local
1129 mss = tcp_skb_mss(skb); in tcp_match_skb_to_sack()
1134 if (pkt_len < mss) in tcp_match_skb_to_sack()
1135 pkt_len = mss; in tcp_match_skb_to_sack()
1138 if (pkt_len < mss) in tcp_match_skb_to_sack()
1145 if (pkt_len > mss) { in tcp_match_skb_to_sack()
1146 unsigned int new_len = (pkt_len / mss) * mss; in tcp_match_skb_to_sack()
[all …]
Dudp_offload.c182 unsigned int mss; in udp4_ufo_fragment() local
197 mss = skb_shinfo(skb)->gso_size; in udp4_ufo_fragment()
198 if (unlikely(skb->len <= mss)) in udp4_ufo_fragment()
214 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in udp4_ufo_fragment()
Dtcp_minisocks.c376 int mss = dst_metric_advmss(dst); in tcp_openreq_init_rwin() local
380 if (user_mss && user_mss < mss) in tcp_openreq_init_rwin()
381 mss = user_mss; in tcp_openreq_init_rwin()
394 mss - (ireq->tstamp_ok ? TCPOLEN_TSTAMP_ALIGNED : 0), in tcp_openreq_init_rwin()
548 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
/net/ipv6/
Dsyncookies.c104 const __u16 mss = *mssp; in __cookie_v6_init_sequence() local
107 if (mss >= msstab[mssind]) in __cookie_v6_init_sequence()
147 int full_space, mss; in cookie_v6_check() local
157 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check()
158 if (mss == 0) { in cookie_v6_check()
184 req->mss = mss; in cookie_v6_check()
247 tcp_select_initial_window(full_space, req->mss, in cookie_v6_check()
Dudp_offload.c24 unsigned int mss; in udp6_ufo_fragment() local
34 mss = skb_shinfo(skb)->gso_size; in udp6_ufo_fragment()
35 if (unlikely(skb->len <= mss)) in udp6_ufo_fragment()
54 skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); in udp6_ufo_fragment()
/net/netfilter/
Dxt_osf.c204 u16 window, totlen, mss = 0; in xt_osf_match_packet() local
277 mss = optp[3]; in xt_osf_match_packet()
278 mss <<= 8; in xt_osf_match_packet()
279 mss |= optp[2]; in xt_osf_match_packet()
281 mss = ntohs((__force __be16)mss); in xt_osf_match_packet()
313 if (window == f->wss.val * mss || in xt_osf_match_packet()
319 if (window == f->wss.val * (mss + 40) || in xt_osf_match_packet()
Dxt_TCPMSS.c110 if (info->mss == XT_TCPMSS_CLAMP_PMTU) { in tcpmss_mangle_packet()
126 newmss = info->mss; in tcpmss_mangle_packet()
276 if (info->mss == XT_TCPMSS_CLAMP_PMTU && in tcpmss_tg4_check()
301 if (info->mss == XT_TCPMSS_CLAMP_PMTU && in tcpmss_tg6_check()
Dnf_synproxy_core.c67 opts->mss = get_unaligned_be16(ptr); in synproxy_parse_options()
126 opts->mss); in synproxy_build_options()
DKconfig942 -j TCPMSS --clamp-mss-to-pmtu
/net/ipv4/netfilter/
Dipt_SYNPROXY.c82 u16 mss = opts->mss; in synproxy_send_client_synack() local
99 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); in synproxy_send_client_synack()
242 int mss; in synproxy_recv_client_ack() local
244 mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack()
245 if (mss == 0) { in synproxy_recv_client_ack()
251 opts->mss = mss; in synproxy_recv_client_ack()
/net/ipv6/netfilter/
Dip6t_SYNPROXY.c95 u16 mss = opts->mss; in synproxy_send_client_synack() local
112 nth->seq = htonl(__cookie_v6_init_sequence(iph, th, &mss)); in synproxy_send_client_synack()
255 int mss; in synproxy_recv_client_ack() local
257 mss = __cookie_v6_check(ipv6_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack()
258 if (mss == 0) { in synproxy_recv_client_ack()
264 opts->mss = mss; in synproxy_recv_client_ack()
/net/decnet/
Daf_decnet.c1854 unsigned int mss = 230 - DN_MAX_NSP_DATA_HEADER; in dn_mss_from_pmtu() local
1869 if (mtu > mss) in dn_mss_from_pmtu()
1870 mss = mtu; in dn_mss_from_pmtu()
1871 return mss; in dn_mss_from_pmtu()
1916 size_t mss; in dn_sendmsg() local
1965 mss = scp->segsize_rem; in dn_sendmsg()
1968 mss = dn_current_mss(sk, flags); in dn_sendmsg()
1972 if (size > mss) { in dn_sendmsg()
1995 if (len > mss) in dn_sendmsg()
1996 len = mss; in dn_sendmsg()
Ddn_route.c285 u32 mss = mtu - DN_MAX_NSP_DATA_HEADER; in dn_dst_update_pmtu() local
287 if (!existing_mss || existing_mss > mss) in dn_dst_update_pmtu()
288 dst_metric_set(dst, RTAX_ADVMSS, mss); in dn_dst_update_pmtu()
896 unsigned int mss = dn_mss_from_pmtu(dev, dst_mtu(&rt->dst)); in dn_rt_set_next_hop() local
897 if (mss_metric > mss) in dn_rt_set_next_hop()
898 dst_metric_set(&rt->dst, RTAX_ADVMSS, mss); in dn_rt_set_next_hop()
/net/core/
Dskbuff.c3066 unsigned int mss = skb_shinfo(head_skb)->gso_size; in skb_segment() local
3100 if (len > mss) in skb_segment()
3101 len = mss; in skb_segment()
3217 pos, mss); in skb_segment()