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>
This commit is contained in:

committed by
David S. Miller

parent
7fed84f622
commit
aee06da672
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user