git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ring: return free space when enqueuing
[dpdk.git]
/
lib
/
librte_mempool
/
rte_mempool_ring.c
diff --git
a/lib/librte_mempool/rte_mempool_ring.c
b/lib/librte_mempool/rte_mempool_ring.c
index
409b860
..
9b8fd2b
100644
(file)
--- a/
lib/librte_mempool/rte_mempool_ring.c
+++ b/
lib/librte_mempool/rte_mempool_ring.c
@@
-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,
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
}
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,
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
}
static int