From: Anatoly Burakov Date: Wed, 4 Apr 2018 14:40:44 +0000 (+0100) Subject: app/crypto-perf: fix IOVA translation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=72b75134b89667baf4aaf4fcb516ab6bc2b1ebd7;p=dpdk.git app/crypto-perf: fix IOVA translation IOVA addresses should be found by calling rte_virt2iova() as opposed to rte_virt2phy(), as physical address may not be equal to IOVA address. Fixes: 2eb6a1a3e5fc ("app/crypto-perf: fix crypto op init") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov Acked-by: Pablo de Lara Acked-by: Santosh Shukla --- diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto-perf/cperf_test_common.c index 21cb1c221a..bd71ac3531 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -91,7 +91,7 @@ mempool_obj_init(struct rte_mempool *mp, op->type = RTE_CRYPTO_OP_TYPE_SYMMETRIC; op->status = RTE_CRYPTO_OP_STATUS_NOT_PROCESSED; op->sess_type = RTE_CRYPTO_OP_WITH_SESSION; - op->phys_addr = rte_mem_virt2phy(obj); + op->phys_addr = rte_mem_virt2iova(obj); op->mempool = mp; /* Set source buffer */