]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix policy hold queue after flowcache removal.
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 1 Feb 2018 10:26:12 +0000 (11:26 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 13 Feb 2018 08:09:28 +0000 (09:09 +0100)
commit5136b94ef7a3a06361d980b3a2413184105b54f6
tree0ae4694e512682ae39937c43cab4a083b13b7799
parent6220aaf30976d57047a3bef2bead7e79bc66dbd4
xfrm: Fix policy hold queue after flowcache removal.

Now that the flowcache is removed we need to generate
a new dummy bundle every time we check if the needed
SAs are in place because the dummy bundle is not cached
anymore. Fix it by passing the XFRM_LOOKUP_QUEUE flag
to xfrm_lookup(). This makes sure that we get a dummy
bundle in case the SAs are not yet in place.

Fixes: dcb4040dc586 ("xfrm_policy: bypass flow_cache_lookup")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c