crypto/dpaa_sec: fix IOVA conversions
authorGagandeep Singh <g.singh@nxp.com>
Mon, 27 Jan 2020 09:07:23 +0000 (14:37 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 5 Feb 2020 14:20:51 +0000 (15:20 +0100)
commitec8615607f6e4e76b6234668dfa60f72a1c0e582
tree008b9d0295fdb1ff9316826a7c3fe4d83fd7661c
parent68113ef6d903dde654c19f0aaad62d35815f9f58
crypto/dpaa_sec: fix IOVA conversions

DPAA sec driver is using virtual to physical address
translation in its data path and driver is using
dpaax_iova_table_update() API in every address translation
which is very costly.
This patch moves dpaax_iova_table_update() calling to rte_dpaa_mem_ptov(),
only if it fails to found translation from DPAAX table.

Fixes: 12e5842945bf ("crypto/dpaa_sec: fix IOVA table")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/bus/dpaa/rte_dpaa_bus.h
drivers/crypto/dpaa_sec/dpaa_sec.c
drivers/crypto/dpaa_sec/meson.build