Lines Matching refs:mtu
499 __u32 mtu, teli; in ip6_tnl_err() local
532 mtu = *info - offset; in ip6_tnl_err()
533 if (mtu < IPV6_MIN_MTU) in ip6_tnl_err()
534 mtu = IPV6_MIN_MTU; in ip6_tnl_err()
536 if (len > mtu) { in ip6_tnl_err()
539 rel_info = mtu; in ip6_tnl_err()
1050 int mtu; in ip6_tnl_xmit() local
1134 mtu = dst_mtu(dst) - eth_hlen - psh_hlen - t->tun_hlen; in ip6_tnl_xmit()
1137 mtu -= 8; in ip6_tnl_xmit()
1139 mtu = max(mtu, skb->protocol == htons(ETH_P_IPV6) ? in ip6_tnl_xmit()
1142 skb_dst_update_pmtu_no_confirm(skb, mtu); in ip6_tnl_xmit()
1143 if (skb->len - t->tun_hlen - eth_hlen > mtu && !skb_is_gso(skb)) { in ip6_tnl_xmit()
1144 *pmtu = mtu; in ip6_tnl_xmit()
1244 __u32 mtu; in ip4ip6_tnl_xmit() local
1295 err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, in ip4ip6_tnl_xmit()
1301 htonl(mtu)); in ip4ip6_tnl_xmit()
1317 __u32 mtu; in ip6ip6_tnl_xmit() local
1383 err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, in ip6ip6_tnl_xmit()
1387 icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); in ip6ip6_tnl_xmit()
1433 int mtu; in ip6_tnl_link_config() local
1476 mtu = rt->dst.dev->mtu - t_hlen; in ip6_tnl_link_config()
1478 mtu -= 8; in ip6_tnl_link_config()
1480 if (mtu < IPV6_MIN_MTU) in ip6_tnl_link_config()
1481 mtu = IPV6_MIN_MTU; in ip6_tnl_link_config()
1482 WRITE_ONCE(dev->mtu, mtu); in ip6_tnl_link_config()
1716 dev->mtu = new_mtu; in ip6_tnl_change_mtu()
1859 dev->mtu = ETH_DATA_LEN - t_hlen; in ip6_tnl_dev_init_gen()
1861 dev->mtu -= 8; in ip6_tnl_dev_init_gen()