net: Move mtu handling down to the protocol depended handlers
[linux-2.6-block.git] / net / decnet / dn_route.c
index db4867963247823bcf8e2fcd0a090ad0311a3dee..94f4ec036669cc152af1a9ff9639889016235228 100644 (file)
@@ -827,7 +827,9 @@ static unsigned int dn_dst_default_advmss(const struct dst_entry *dst)
 
 static unsigned int dn_dst_mtu(const struct dst_entry *dst)
 {
-       return dst->dev->mtu;
+       unsigned int mtu = dst_metric_raw(dst, RTAX_MTU);
+
+       return mtu ? : dst->dev->mtu;
 }
 
 static struct neighbour *dn_dst_neigh_lookup(const struct dst_entry *dst, const void *daddr)