event/dpaa2: prefetch the next DQRR entry
authorNipun Gupta <nipun.gupta@nxp.com>
Tue, 23 Jan 2018 14:17:52 +0000 (19:47 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Wed, 31 Jan 2018 06:19:05 +0000 (07:19 +0100)
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
drivers/event/dpaa2/dpaa2_eventdev.c

index 84ecd1b..c3e6fbf 100644 (file)
@@ -255,9 +255,9 @@ dpaa2_eventdev_dequeue_burst(void *port, struct rte_event ev[],
                        }
                        return num_pkts;
                }
+               qbman_swp_prefetch_dqrr_next(swp);
 
                fd = qbman_result_DQ_fd(dq);
-
                rxq = (struct dpaa2_queue *)qbman_result_DQ_fqd_ctx(dq);
                if (rxq) {
                        rxq->cb(swp, fd, dq, rxq, &ev[num_pkts]);