event/dpaa2: use dqrr index to consume the DQRR entry
authorNipun Gupta <nipun.gupta@nxp.com>
Wed, 17 Jan 2018 11:39:11 +0000 (17:09 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 19 Jan 2018 15:09:56 +0000 (16:09 +0100)
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/event/dpaa2/dpaa2_eventdev.c

index 542bccc..65c2c7a 100644 (file)
@@ -237,8 +237,7 @@ dpaa2_eventdev_dequeue_burst(void *port, struct rte_event ev[],
        /* Check if there are atomic contexts to be released */
        while (DPAA2_PER_LCORE_DPIO->dqrr_size) {
                if (DPAA2_PER_LCORE_DPIO->dqrr_held & (1 << i)) {
-                       dq = qbman_get_dqrr_from_idx(swp, i);
-                       qbman_swp_dqrr_consume(swp, dq);
+                       qbman_swp_dqrr_idx_consume(swp, i);
                        DPAA2_PER_LCORE_DPIO->dqrr_size--;
                }
                i++;