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 remaining entry count when dequeuing
[dpdk.git]
/
lib
/
librte_mempool
/
rte_mempool_stack.c
diff --git
a/lib/librte_mempool/rte_mempool_stack.c
b/lib/librte_mempool/rte_mempool_stack.c
index
5fd8af2
..
817f77e
100644
(file)
--- a/
lib/librte_mempool/rte_mempool_stack.c
+++ b/
lib/librte_mempool/rte_mempool_stack.c
@@
-118,7
+118,7
@@
stack_dequeue(struct rte_mempool *mp, void **obj_table,
s->len -= n;
rte_spinlock_unlock(&s->sl);
- return
n
;
+ return
0
;
}
static unsigned