]> asedeno.scripts.mit.edu Git - linux.git/commit
xfrm: reset crypto_done when iterating over multiple input xfrms
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Mon, 3 Sep 2018 11:36:53 +0000 (04:36 -0700)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 4 Sep 2018 08:27:07 +0000 (10:27 +0200)
commit782710e333a526780d65918d669cb96646983ba2
treec22121822914bf67bed87c74919a3b6fe7f0185f
parentbfc0698bebcb16d19ecfc89574ad4d696955e5d3
xfrm: reset crypto_done when iterating over multiple input xfrms

We only support one offloaded xfrm (we do not have devices that
can handle more than one offload), so reset crypto_done in
xfrm_input() when iterating over multiple transforms in xfrm_input,
so that we can invoke the appropriate x->type->input for the
non-offloaded transforms

Fixes: d77e38e612a0 ("xfrm: Add an IPsec hardware offloading API")
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_input.c