From: Pablo de Lara Date: Mon, 6 Nov 2017 09:36:04 +0000 (+0000) Subject: app/crypto-perf: fix crypto op init X-Git-Tag: spdx-start~935 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2eb6a1a3e5fc6e2760187d9c598468509f320e61;p=dpdk.git app/crypto-perf: fix crypto op init The mempool and the physical address of the crypto operation at mempool initialization were not being set, leading to incorrect physical addresses. Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") Signed-off-by: Pablo de Lara Acked-by: Fan Zhang --- diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto-perf/cperf_test_common.c index a95899a3f1..328744ef88 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -119,6 +119,8 @@ 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->mempool = mp; /* Set source buffer */ op->sym->m_src = m;