From: Satoru SATOH Date: Mon, 5 May 2008 05:12:43 +0000 (-0700) Subject: ip: Make use of the inline function dst_metric_locked() X-Git-Tag: v2.6.26-rc2~60^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0bbeafd0118fc3ae54990064760c889d41dc21d6;p=linux-2.6-omap-h63xx.git ip: Make use of the inline function dst_metric_locked() Signed-off-by: Satoru SATOH Signed-off-by: David S. Miller --- diff --git a/include/net/ip.h b/include/net/ip.h index 6d7bcd5e62d..3b40bc2234b 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -210,7 +210,7 @@ int ip_dont_fragment(struct sock *sk, struct dst_entry *dst) { return (inet_sk(sk)->pmtudisc == IP_PMTUDISC_DO || (inet_sk(sk)->pmtudisc == IP_PMTUDISC_WANT && - !(dst_metric(dst, RTAX_LOCK)&(1<u.dst.metrics)); if (fi->fib_mtu == 0) { rt->u.dst.metrics[RTAX_MTU-1] = rt->u.dst.dev->mtu; - if (rt->u.dst.metrics[RTAX_LOCK-1] & (1 << RTAX_MTU) && + if (dst_metric_locked(&rt->u.dst, RTAX_MTU) && rt->rt_gateway != rt->rt_dst && rt->u.dst.dev->mtu > 576) rt->u.dst.metrics[RTAX_MTU-1] = 576;