app/crypto-perf: fix crypto op init
[dpdk.git] / app / test-crypto-perf / cperf_test_common.c
index a95899a..328744e 100644 (file)
@@ -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;