aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 90ba8358a892..741df67a81ec 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -909,6 +909,9 @@ static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu)
909 struct dst_entry *dst = &rt->dst; 909 struct dst_entry *dst = &rt->dst;
910 struct fib_result res; 910 struct fib_result res;
911 911
912 if (dst->dev->mtu < mtu)
913 return;
914
912 if (mtu < ip_rt_min_pmtu) 915 if (mtu < ip_rt_min_pmtu)
913 mtu = ip_rt_min_pmtu; 916 mtu = ip_rt_min_pmtu;
914 917