ipv4: Don't create nh exeption when the device mtu is smaller than the reported pmtu
[linux-3.10.git] / net / ipv4 / route.c
index 90ba835..741df67 100644 (file)
@@ -909,6 +909,9 @@ static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu)
        struct dst_entry *dst = &rt->dst;
        struct fib_result res;
 
+       if (dst->dev->mtu < mtu)
+               return;
+
        if (mtu < ip_rt_min_pmtu)
                mtu = ip_rt_min_pmtu;