From: Jun Yang <jun.y...@nxp.com>

Should not prefetch mbuf and crypto_op which are not touched
by hardware.

Signed-off-by: Jun Yang <jun.y...@nxp.com>
---
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c 
b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
index ff24a8919a..1e28c71b53 100644
--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
@@ -3991,12 +3991,6 @@ dpaa2_sec_process_parallel_event(struct qbman_swp *swp,
                                 struct rte_event *ev)
 {
        struct dpaa2_sec_qp *qp;
-       /* Prefetching mbuf */
-       rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-
-               rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size));
-
-       /* Prefetching ipsec crypto_op stored in priv data of mbuf */
-       rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-64));
 
        qp = container_of(rxq, struct dpaa2_sec_qp, rx_vq);
        ev->flow_id = rxq->ev.flow_id;
@@ -4010,6 +4004,7 @@ dpaa2_sec_process_parallel_event(struct qbman_swp *swp,
 
        qbman_swp_dqrr_consume(swp, dq);
 }
+
 static void
 dpaa2_sec_process_atomic_event(struct qbman_swp *swp __rte_unused,
                                 const struct qbman_fd *fd,
@@ -4020,12 +4015,6 @@ dpaa2_sec_process_atomic_event(struct qbman_swp *swp 
__rte_unused,
        uint8_t dqrr_index;
        struct dpaa2_sec_qp *qp;
        struct rte_crypto_op *crypto_op;
-       /* Prefetching mbuf */
-       rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-
-               rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size));
-
-       /* Prefetching ipsec crypto_op stored in priv data of mbuf */
-       rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-64));
 
        qp = container_of(rxq, struct dpaa2_sec_qp, rx_vq);
        ev->flow_id = rxq->ev.flow_id;
@@ -4055,13 +4044,6 @@ dpaa2_sec_process_ordered_event(struct qbman_swp *swp,
        struct rte_crypto_op *crypto_op;
        struct dpaa2_sec_qp *qp;
 
-       /* Prefetching mbuf */
-       rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-
-               rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size));
-
-       /* Prefetching ipsec crypto_op stored in priv data of mbuf */
-       rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-64));
-
        qp = container_of(rxq, struct dpaa2_sec_qp, rx_vq);
        ev->flow_id = rxq->ev.flow_id;
        ev->sub_event_type = rxq->ev.sub_event_type;
-- 
2.25.1

Reply via email to