ring: return remaining entry count when dequeuing
[dpdk.git] / drivers / crypto / armv8 / rte_armv8_pmd.c
index d2b88a3..6376e9e 100644 (file)
@@ -739,13 +739,15 @@ armv8_crypto_pmd_enqueue_burst(void *queue_pair, struct rte_crypto_op **ops,
                        goto enqueue_err;
        }
 
-       retval = rte_ring_enqueue_burst(qp->processed_ops, (void *)ops, i);
+       retval = rte_ring_enqueue_burst(qp->processed_ops, (void *)ops, i,
+                       NULL);
        qp->stats.enqueued_count += retval;
 
        return retval;
 
 enqueue_err:
-       retval = rte_ring_enqueue_burst(qp->processed_ops, (void *)ops, i);
+       retval = rte_ring_enqueue_burst(qp->processed_ops, (void *)ops, i,
+                       NULL);
        if (ops[i] != NULL)
                ops[i]->status = RTE_CRYPTO_OP_STATUS_INVALID_ARGS;
 
@@ -763,7 +765,7 @@ armv8_crypto_pmd_dequeue_burst(void *queue_pair, struct rte_crypto_op **ops,
        unsigned int nb_dequeued = 0;
 
        nb_dequeued = rte_ring_dequeue_burst(qp->processed_ops,
-                       (void **)ops, nb_ops);
+                       (void **)ops, nb_ops, NULL);
        qp->stats.dequeued_count += nb_dequeued;
 
        return nb_dequeued;