summaryrefslogtreecommitdiff
path: root/include/net/ip_fib.h
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2012-07-18 14:15:35 +0400
committerDavid S. Miller <davem@davemloft.net>2012-07-19 21:30:14 +0400
commitaee06da6726d4981c51928c2d6d1e2cabeec7a10 (patch)
treed7b0281232aac81edfd5da0ca96c6b99ac9c7dae /include/net/ip_fib.h
parent7fed84f622ec2696087301199c2952b85e0cc3b4 (diff)
downloadlinux-aee06da6726d4981c51928c2d6d1e2cabeec7a10.tar.xz
ipv4: use seqlock for nh_exceptions
Use global seqlock for the nh_exceptions. Call fnhe_oldest with the right hash chain. Correct the diff value for dst_set_expires. v2: after suggestions from Eric Dumazet: * get rid of spin lock fnhe_lock, rearrange update_or_create_fnhe * continue daddr search in rt_bind_exception v3: * remove the daddr check before seqlock in rt_bind_exception * restart lookup in rt_bind_exception on detected seqlock change, as suggested by David Miller Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r--include/net/ip_fib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index e9ee1ca07087..2daf096dfc60 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -51,7 +51,7 @@ struct fib_nh_exception {
struct fib_nh_exception __rcu *fnhe_next;
__be32 fnhe_daddr;
u32 fnhe_pmtu;
- u32 fnhe_gw;
+ __be32 fnhe_gw;
unsigned long fnhe_expires;
unsigned long fnhe_stamp;
};