aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-25 20:23:48 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 20:23:48 -0500
commita35f6c5de32664d82c072a7e2c7d5c5234de4158 (patch)
tree4eae7591e4bacb4ce4700eae2399c5622f4f4ffa /include/net/netns
parent8b18f8eaf9207d53ba3e69f2b98d7290f4dec227 (diff)
netns xfrm: per-netns xfrm_policy_bydst hash
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/xfrm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h
index c7568315f16c..39cfa799fa90 100644
--- a/include/net/netns/xfrm.h
+++ b/include/net/netns/xfrm.h
@@ -6,6 +6,11 @@
6#include <linux/workqueue.h> 6#include <linux/workqueue.h>
7#include <linux/xfrm.h> 7#include <linux/xfrm.h>
8 8
9struct xfrm_policy_hash {
10 struct hlist_head *table;
11 unsigned int hmask;
12};
13
9struct netns_xfrm { 14struct netns_xfrm {
10 struct list_head state_all; 15 struct list_head state_all;
11 /* 16 /*
@@ -31,6 +36,7 @@ struct netns_xfrm {
31 struct hlist_head *policy_byidx; 36 struct hlist_head *policy_byidx;
32 unsigned int policy_idx_hmask; 37 unsigned int policy_idx_hmask;
33 struct hlist_head policy_inexact[XFRM_POLICY_MAX * 2]; 38 struct hlist_head policy_inexact[XFRM_POLICY_MAX * 2];
39 struct xfrm_policy_hash policy_bydst[XFRM_POLICY_MAX * 2];
34}; 40};
35 41
36#endif 42#endif