diff options
author | Julian Anastasov <ja@ssi.bg> | 2012-07-18 10:15:35 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-19 10:30:14 -0700 |
commit | aee06da6726d4981c51928c2d6d1e2cabeec7a10 (patch) | |
tree | d7b0281232aac81edfd5da0ca96c6b99ac9c7dae /include/net | |
parent | 7fed84f622ec2696087301199c2952b85e0cc3b4 (diff) | |
download | blackbird-op-linux-aee06da6726d4981c51928c2d6d1e2cabeec7a10.tar.gz blackbird-op-linux-aee06da6726d4981c51928c2d6d1e2cabeec7a10.zip |
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')
-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 { 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; }; |