ipv6: Only create RTF_CACHE routes after encountering pmtu exception
[linux-2.6-microblaze.git] / include / net / ip6_route.h
index 4caf7d6..784ee3d 100644 (file)
@@ -202,7 +202,7 @@ static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt,
 {
        if (rt->rt6i_flags & RTF_GATEWAY)
                return &rt->rt6i_gateway;
-       else if (rt->rt6i_flags & RTF_CACHE)
+       else if (unlikely(rt->rt6i_flags & RTF_CACHE))
                return &rt->rt6i_dst.addr;
        else
                return daddr;