xfrm: Remove caching of xfrm_policy_sk_bundles
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Feb 2014 09:07:34 +0000 (10:07 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Feb 2014 09:35:43 +0000 (10:35 +0100)
commit1a1ccc96abb2ed9b8fbb71018e64b97324caef53
tree0888c68978167c36ce434344264afb19cf83a7c7
parentd3623099d3509fa68fa28235366049dd3156c63a
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>
include/net/netns/xfrm.h
net/xfrm/xfrm_policy.c