From: Anoob Joseph <ano...@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 <ano...@marvell.com>
---
 drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c 
b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c
index 446a3c3fd8..90ca9eec27 100644
--- a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c
+++ b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c
@@ -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;
        }
 
-- 
2.25.1

Reply via email to