]> Git Repo - linux.git/commitdiff
ipv4: Remove output route check in ipv4_mtu
authorSteffen Klassert <[email protected]>
Wed, 16 Jan 2013 20:55:01 +0000 (20:55 +0000)
committerDavid S. Miller <[email protected]>
Thu, 17 Jan 2013 08:39:36 +0000 (03:39 -0500)
The output route check was introduced with git commit 261663b0
(ipv4: Don't use the cached pmtu informations for input routes)
during times when we cached the pmtu informations on the
inetpeer. Now the pmtu informations are back in the routes,
so this check is obsolete. It also had some unwanted side effects,
as reported by Timo Teras and Lukas Tribus.

Signed-off-by: Steffen Klassert <[email protected]>
Acked-by: Timo Teräs <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/route.c

index 844a9ef60dbd89f459515101ebb0db6e7cfaa8a3..6e4a89c5e27edaabe80dc92bc15650b4c4dd1f20 100644 (file)
@@ -1120,7 +1120,7 @@ static unsigned int ipv4_mtu(const struct dst_entry *dst)
        if (!mtu || time_after_eq(jiffies, rt->dst.expires))
                mtu = dst_metric_raw(dst, RTAX_MTU);
 
-       if (mtu && rt_is_output_route(rt))
+       if (mtu)
                return mtu;
 
        mtu = dst->dev->mtu;
This page took 0.057361 seconds and 4 git commands to generate.