crypto/dpaa_sec: optimize virtual address conversion
authorHemant Agrawal <hemant.agrawal@nxp.com>
Mon, 15 Jan 2018 06:35:51 +0000 (12:05 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Sat, 20 Jan 2018 15:10:20 +0000 (16:10 +0100)
commitfcf6702909f0d36e2086be9fc37399e597d0fa8a
tree50c392da527655da4e86e273c8fdf3973a8a16bc
parent2c68fe791538e86b443fd5d7861e679bfcb955af
crypto/dpaa_sec: optimize virtual address conversion

Context memory is allocated from mempool. Ideally
it will get all memory from single segment, so simple offset
calculation is used for address conversion for such addresses
from context memory.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa_sec/dpaa_sec.c
drivers/crypto/dpaa_sec/dpaa_sec.h