diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-26 02:23:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-26 02:23:48 +0100 |
commit | a35f6c5de32664d82c072a7e2c7d5c5234de4158 (patch) | |
tree | 4eae7591e4bacb4ce4700eae2399c5622f4f4ffa /include/net/netns | |
parent | netns xfrm: per-netns inexact policies (diff) | |
download | linux-a35f6c5de32664d82c072a7e2c7d5c5234de4158.tar.xz linux-a35f6c5de32664d82c072a7e2c7d5c5234de4158.zip |
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.h | 6 |
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 @@ #include <linux/workqueue.h> #include <linux/xfrm.h> +struct xfrm_policy_hash { + struct hlist_head *table; + unsigned int hmask; +}; + struct netns_xfrm { struct list_head state_all; /* @@ -31,6 +36,7 @@ struct netns_xfrm { struct hlist_head *policy_byidx; unsigned int policy_idx_hmask; struct hlist_head policy_inexact[XFRM_POLICY_MAX * 2]; + struct xfrm_policy_hash policy_bydst[XFRM_POLICY_MAX * 2]; }; #endif |