diff options
author | David S. Miller <davem@davemloft.net> | 2016-09-24 08:18:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-24 08:18:19 -0400 |
commit | 1678c1134fd4aa26ae498a31b1b90c6401da9af8 (patch) | |
tree | bd0f27c87a95193b99da0bd9bf67b5b257741f5b | |
parent | 834d9649808b1e2bdf6f6a2dec07b7812f78ea1c (diff) | |
parent | c2f672fc94642bae96821a393f342edcfa9794a6 (diff) | |
download | op-kernel-dev-1678c1134fd4aa26ae498a31b1b90c6401da9af8.zip op-kernel-dev-1678c1134fd4aa26ae498a31b1b90c6401da9af8.tar.gz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
Steffen Klassert says:
====================
pull request (net-next): ipsec-next 2016-09-23
Only two patches this time:
1) Fix a comment reference to struct xfrm_replay_state_esn.
From Richard Guy Briggs.
2) Convert xfrm_state_lookup to rcu, we don't need the
xfrm_state_lock anymore in the input path.
From Florian Westphal.
Please pull or let me know if there are problems.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/uapi/linux/xfrm.h | 2 | ||||
-rw-r--r-- | net/xfrm/xfrm_state.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/uapi/linux/xfrm.h b/include/uapi/linux/xfrm.h index 1433389..1fc62b2 100644 --- a/include/uapi/linux/xfrm.h +++ b/include/uapi/linux/xfrm.h @@ -298,7 +298,7 @@ enum xfrm_attr_type_t { XFRMA_ALG_AUTH_TRUNC, /* struct xfrm_algo_auth */ XFRMA_MARK, /* struct xfrm_mark */ XFRMA_TFCPAD, /* __u32 */ - XFRMA_REPLAY_ESN_VAL, /* struct xfrm_replay_esn */ + XFRMA_REPLAY_ESN_VAL, /* struct xfrm_replay_state_esn */ XFRMA_SA_EXTRA_FLAGS, /* __u32 */ XFRMA_PROTO, /* __u8 */ XFRMA_ADDRESS_FILTER, /* struct xfrm_address_filter */ diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 5685da0..419bf5d 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -1432,9 +1432,9 @@ xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 { struct xfrm_state *x; - spin_lock_bh(&net->xfrm.xfrm_state_lock); + rcu_read_lock(); x = __xfrm_state_lookup(net, mark, daddr, spi, proto, family); - spin_unlock_bh(&net->xfrm.xfrm_state_lock); + rcu_read_unlock(); return x; } EXPORT_SYMBOL(xfrm_state_lookup); |