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: bf9d6702ec
("app/crypto-perf: use single mempool")
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
This commit is contained in:
parent
448c23320f
commit
2eb6a1a3e5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user