projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipv6: Only create RTF_CACHE routes after encountering pmtu exception
[linux-2.6-microblaze.git]
/
include
/
net
/
ip6_route.h
diff --git
a/include/net/ip6_route.h
b/include/net/ip6_route.h
index
4caf7d6
..
784ee3d
100644
(file)
--- a/
include/net/ip6_route.h
+++ b/
include/net/ip6_route.h
@@
-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;