aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-09-25 17:23:57 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2016-09-25 17:34:19 -0400
commitf20fbc0717f9f007c94b2641134b19228d0ce9ed (patch)
tree1404248ebbec552a3fb7928b75322b65d74de1bd /include/net/netns
parent8cb2a7d5667ab9a9c2fdd356357b85b63b320901 (diff)
parentfe0acb5fcb7fe8cb3d68bbdb8459865c972d8f83 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Conflicts: net/netfilter/core.c net/netfilter/nf_tables_netdev.c Resolve two conflicts before pull request for David's net-next tree: 1) Between c73c24849011 ("netfilter: nf_tables_netdev: remove redundant ip_hdr assignment") from the net tree and commit ddc8b6027ad0 ("netfilter: introduce nft_set_pktinfo_{ipv4, ipv6}_validate()"). 2) Between e8bffe0cf964 ("net: Add _nf_(un)register_hooks symbols") and Aaron Conole's patches to replace list_head with single linked list. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/xfrm.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h
index 24cd3949a9a4..27bb9633c69d 100644
--- a/include/net/netns/xfrm.h
+++ b/include/net/netns/xfrm.h
@@ -11,7 +11,7 @@
11struct ctl_table_header; 11struct ctl_table_header;
12 12
13struct xfrm_policy_hash { 13struct xfrm_policy_hash {
14 struct hlist_head *table; 14 struct hlist_head __rcu *table;
15 unsigned int hmask; 15 unsigned int hmask;
16 u8 dbits4; 16 u8 dbits4;
17 u8 sbits4; 17 u8 sbits4;
@@ -38,14 +38,12 @@ struct netns_xfrm {
38 * mode. Also, it can be used by ah/esp icmp error handler to find 38 * mode. Also, it can be used by ah/esp icmp error handler to find
39 * offending SA. 39 * offending SA.
40 */ 40 */
41 struct hlist_head *state_bydst; 41 struct hlist_head __rcu *state_bydst;
42 struct hlist_head *state_bysrc; 42 struct hlist_head __rcu *state_bysrc;
43 struct hlist_head *state_byspi; 43 struct hlist_head __rcu *state_byspi;
44 unsigned int state_hmask; 44 unsigned int state_hmask;
45 unsigned int state_num; 45 unsigned int state_num;
46 struct work_struct state_hash_work; 46 struct work_struct state_hash_work;
47 struct hlist_head state_gc_list;
48 struct work_struct state_gc_work;
49 47
50 struct list_head policy_all; 48 struct list_head policy_all;
51 struct hlist_head *policy_byidx; 49 struct hlist_head *policy_byidx;
@@ -73,7 +71,7 @@ struct netns_xfrm {
73 struct dst_ops xfrm6_dst_ops; 71 struct dst_ops xfrm6_dst_ops;
74#endif 72#endif
75 spinlock_t xfrm_state_lock; 73 spinlock_t xfrm_state_lock;
76 rwlock_t xfrm_policy_lock; 74 spinlock_t xfrm_policy_lock;
77 struct mutex xfrm_cfg_mutex; 75 struct mutex xfrm_cfg_mutex;
78 76
79 /* flow cache part */ 77 /* flow cache part */