[v2,07/12] crypto/cnxk: remove init of CPT result field in packet
Checks
Commit Message
From: Anoob Joseph <anoobj@marvell.com>
The packet would be posted to CPT only when there is a valid result.
Skip setting of the same.
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 7 -------
1 file changed, 7 deletions(-)
@@ -1410,10 +1410,6 @@ cn10k_cryptodev_sec_inb_rx_inject(void *dev, struct rte_mbuf **pkts,
uint64_t dptr;
int i;
- const union cpt_res_s res = {
- .cn10k.compcode = CPT_COMP_NOT_DONE,
- };
-
vf = cdev->data->dev_private;
lmt_base = vf->rx_inj_lmtline.lmt_base;
@@ -1491,9 +1487,6 @@ cn10k_cryptodev_sec_inb_rx_inject(void *dev, struct rte_mbuf **pkts,
inst_67 = vsetq_lane_u64(u64_1, inst_67, 1);
vst1q_u64(&inst->w6.u64, inst_67);
- rte_atomic_store_explicit((unsigned long __rte_atomic *)&hw_res->u64[0], res.u64[0],
- rte_memory_order_relaxed);
-
inst += 2;
}