]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_mempool/rte_mempool_ring.c
ring: return free space when enqueuing
[dpdk.git] / lib / librte_mempool / rte_mempool_ring.c
index 409b86054f0da6a9a9b945f565af919d4a3e776d..9b8fd2bd4f0841985d07ede92d85dbd797607a6c 100644 (file)
@@ -43,7 +43,7 @@ common_ring_mp_enqueue(struct rte_mempool *mp, void * const *obj_table,
                unsigned n)
 {
        return rte_ring_mp_enqueue_bulk(mp->pool_data,
-                       obj_table, n) == 0 ? -ENOBUFS : 0;
+                       obj_table, n, NULL) == 0 ? -ENOBUFS : 0;
 }
 
 static int
@@ -51,7 +51,7 @@ common_ring_sp_enqueue(struct rte_mempool *mp, void * const *obj_table,
                unsigned n)
 {
        return rte_ring_sp_enqueue_bulk(mp->pool_data,
-                       obj_table, n) == 0 ? -ENOBUFS : 0;
+                       obj_table, n, NULL) == 0 ? -ENOBUFS : 0;
 }
 
 static int