diff options
author | Julian Anastasov <ja@ssi.bg> | 2012-07-18 06:15:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-19 13:30:14 -0400 |
commit | aee06da6726d4981c51928c2d6d1e2cabeec7a10 (patch) | |
tree | d7b0281232aac81edfd5da0ca96c6b99ac9c7dae /include/net/ip_fib.h | |
parent | 7fed84f622ec2696087301199c2952b85e0cc3b4 (diff) |
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.h | 2 |
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 { | |||
51 | struct fib_nh_exception __rcu *fnhe_next; | 51 | struct fib_nh_exception __rcu *fnhe_next; |
52 | __be32 fnhe_daddr; | 52 | __be32 fnhe_daddr; |
53 | u32 fnhe_pmtu; | 53 | u32 fnhe_pmtu; |
54 | u32 fnhe_gw; | 54 | __be32 fnhe_gw; |
55 | unsigned long fnhe_expires; | 55 | unsigned long fnhe_expires; |
56 | unsigned long fnhe_stamp; | 56 | unsigned long fnhe_stamp; |
57 | }; | 57 | }; |