summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2014-02-19 10:07:34 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2014-02-19 10:35:43 +0100
commit1a1ccc96abb2ed9b8fbb71018e64b97324caef53 (patch)
tree0888c68978167c36ce434344264afb19cf83a7c7 /include/net
parentd3623099d3509fa68fa28235366049dd3156c63a (diff)
downloadblackbird-op-linux-1a1ccc96abb2ed9b8fbb71018e64b97324caef53.tar.gz
blackbird-op-linux-1a1ccc96abb2ed9b8fbb71018e64b97324caef53.zip
xfrm: Remove caching of xfrm_policy_sk_bundles
We currently cache socket policy bundles at xfrm_policy_sk_bundles. These cached bundles are never used. Instead we create and cache a new one whenever xfrm_lookup() is called on a socket policy. Most protocols cache the used routes to the socket, so let's remove the unused caching of socket policy bundles in xfrm. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netns/xfrm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h
index 52d0086d55d3..51f0dce7b643 100644
--- a/include/net/netns/xfrm.h
+++ b/include/net/netns/xfrm.h
@@ -59,7 +59,6 @@ struct netns_xfrm {
struct dst_ops xfrm6_dst_ops;
#endif
spinlock_t xfrm_state_lock;
- spinlock_t xfrm_policy_sk_bundle_lock;
rwlock_t xfrm_policy_lock;
struct mutex xfrm_cfg_mutex;
OpenPOWER on IntegriCloud