]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda6d14b9e85afcf9a6859f61eb7ef3f7dedfcc8e
tree0888c68978167c36ce434344264afb19cf83a7c7
parentfd9a95c040c0bc09b936c27aa2f5445bef0bfd71
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