• Home
  • Raw
  • Download

Lines Matching refs:mtu

143 					   struct sk_buff *skb, u32 mtu,
164 .mtu = ipv4_mtu,
1036 static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu) in __ip_rt_update_pmtu() argument
1047 if (old_mtu < mtu) in __ip_rt_update_pmtu()
1050 if (mtu < ip_rt_min_pmtu) { in __ip_rt_update_pmtu()
1052 mtu = min(old_mtu, ip_rt_min_pmtu); in __ip_rt_update_pmtu()
1055 if (rt->rt_pmtu == mtu && !lock && in __ip_rt_update_pmtu()
1065 update_or_create_fnhe(nhc, fl4->daddr, 0, mtu, lock, in __ip_rt_update_pmtu()
1072 struct sk_buff *skb, u32 mtu, in ip_rt_update_pmtu() argument
1079 __ip_rt_update_pmtu(rt, &fl4, mtu); in ip_rt_update_pmtu()
1082 void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, in ipv4_update_pmtu() argument
1094 __ip_rt_update_pmtu(rt, &fl4, mtu); in ipv4_update_pmtu()
1100 static void __ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu) in __ipv4_sk_update_pmtu() argument
1113 __ip_rt_update_pmtu(rt, &fl4, mtu); in __ipv4_sk_update_pmtu()
1118 void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu) in ipv4_sk_update_pmtu() argument
1135 __ipv4_sk_update_pmtu(skb, sk, mtu); in ipv4_sk_update_pmtu()
1150 __ip_rt_update_pmtu((struct rtable *) xfrm_dst_path(&rt->dst), &fl4, mtu); in ipv4_sk_update_pmtu()
1334 unsigned int mtu = rt->rt_pmtu; in ipv4_mtu() local
1336 if (!mtu || time_after_eq(jiffies, rt->dst.expires)) in ipv4_mtu()
1337 mtu = dst_metric_raw(dst, RTAX_MTU); in ipv4_mtu()
1339 if (mtu) in ipv4_mtu()
1342 mtu = READ_ONCE(dst->dev->mtu); in ipv4_mtu()
1345 if (rt->rt_uses_gateway && mtu > 576) in ipv4_mtu()
1346 mtu = 576; in ipv4_mtu()
1350 mtu = min_t(unsigned int, mtu, IP_MAX_MTU); in ipv4_mtu()
1352 return mtu - lwtunnel_headroom(dst->lwtstate, mtu); in ipv4_mtu()
1426 u32 mtu = 0; in ip_mtu_from_fib_result() local
1430 mtu = fi->fib_mtu; in ip_mtu_from_fib_result()
1432 if (likely(!mtu)) { in ip_mtu_from_fib_result()
1437 mtu = fnhe->fnhe_pmtu; in ip_mtu_from_fib_result()
1440 if (likely(!mtu)) in ip_mtu_from_fib_result()
1441 mtu = min(READ_ONCE(dev->mtu), IP_MAX_MTU); in ip_mtu_from_fib_result()
1443 return mtu - lwtunnel_headroom(nhc->nhc_lwtstate, mtu); in ip_mtu_from_fib_result()
2675 unsigned int mtu = dst_metric_raw(dst, RTAX_MTU); in ipv4_blackhole_mtu() local
2677 return mtu ? : dst->dev->mtu; in ipv4_blackhole_mtu()
2681 struct sk_buff *skb, u32 mtu, in ipv4_rt_blackhole_update_pmtu() argument
2700 .mtu = ipv4_blackhole_mtu,