OSDN Git Service

crypto: caam/qi2 - use affine DPIOs
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 11 Feb 2019 11:46:12 +0000 (13:46 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:26 +0000 (12:47 +0800)
commitac5d15b4519f418818036e1e23a392e3d78095f6
tree97c628179e4d607a355a512185772d83937cd501
parent7d220dabc2192f37a8ad446d75e903ba9c0781fe
crypto: caam/qi2 - use affine DPIOs

Driver was relying on an older DPIO API, which provided a CPU-affine DPIO
in case it was called with preemption disabled.

Since this is no longer the case, save the CPU-affine DPIO in per-cpu
private structure during setup and further use it on the hot path.

Note that preemption is no longer disabled while trying to enqueue an
FD. Thus it might be possible to run the enqueue on a different CPU
(due to migration, when in process context), however this wouldn't be a
functionality issue.
Since we allow for all cores to enqueue, we take care of data
structures setup to handle the case when number of (Rx, Tx) queue pairs
is smaller than number of cores.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi2.c
drivers/crypto/caam/caamalg_qi2.h