Lines Matching refs:mtu
198 static int iptunnel_pmtud_build_icmp(struct sk_buff *skb, int mtu) in iptunnel_pmtud_build_icmp() argument
228 .un.frag.mtu = htons(mtu), in iptunnel_pmtud_build_icmp()
264 static int iptunnel_pmtud_check_icmp(struct sk_buff *skb, int mtu) in iptunnel_pmtud_check_icmp() argument
269 if (mtu < 576 || iph->frag_off != htons(IP_DF)) in iptunnel_pmtud_check_icmp()
280 return iptunnel_pmtud_build_icmp(skb, mtu); in iptunnel_pmtud_check_icmp()
291 static int iptunnel_pmtud_build_icmpv6(struct sk_buff *skb, int mtu) in iptunnel_pmtud_build_icmpv6() argument
321 .icmp6_mtu = htonl(mtu), in iptunnel_pmtud_build_icmpv6()
357 static int iptunnel_pmtud_check_icmpv6(struct sk_buff *skb, int mtu) in iptunnel_pmtud_check_icmpv6() argument
365 if (mtu < IPV6_MIN_MTU) in iptunnel_pmtud_check_icmpv6()
390 return iptunnel_pmtud_build_icmpv6(skb, mtu); in iptunnel_pmtud_check_icmpv6()
413 u32 mtu = dst_mtu(encap_dst) - headroom; in skb_tunnel_check_pmtu() local
415 if ((skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) || in skb_tunnel_check_pmtu()
416 (!skb_is_gso(skb) && (skb->len - skb_network_offset(skb)) <= mtu)) in skb_tunnel_check_pmtu()
419 skb_dst_update_pmtu_no_confirm(skb, mtu); in skb_tunnel_check_pmtu()
425 return iptunnel_pmtud_check_icmp(skb, mtu); in skb_tunnel_check_pmtu()
429 return iptunnel_pmtud_check_icmpv6(skb, mtu); in skb_tunnel_check_pmtu()