summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2017-07-26 05:20:05 +0100
committerYuanhan Liu <yliu@fridaylinux.org>2017-08-29 14:50:29 +0800
commit50c6c98ab070ea0a57abdc8bb6c7539804eed03b (patch)
treeb26e1e7a54c57ec6dc1d0aa11e002ca1d92ed775
parent56679bc38b9c9d0a95527a6ee4710044bcb89ced (diff)
downloaddpdk-stable-50c6c98ab070ea0a57abdc8bb6c7539804eed03b.zip
dpdk-stable-50c6c98ab070ea0a57abdc8bb6c7539804eed03b.tar.gz
dpdk-stable-50c6c98ab070ea0a57abdc8bb6c7539804eed03b.tar.xz
mbuf: fix doxygen comment of bulk alloc
[ upstream commit c0bad56ef8b84a2e03bff1f5739a52248d22aedd ] When calling rte_pktmbuf_alloc_bulk, if there are not enough objects in the mempool, it returns a negative value, which should be reflected in the Doxygen comments. Fixes: 9ec201f5d6e7 ("mbuf: provide bulk allocation") Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
-rw-r--r--lib/librte_mbuf/rte_mbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index 706f99a..1276b3c 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@ -1136,6 +1136,7 @@ static inline struct rte_mbuf *rte_pktmbuf_alloc(struct rte_mempool *mp)
* Array size
* @return
* - 0: Success
+ * - -ENOENT: Not enough entries in the mempool; no mbufs are retrieved.
*/
static inline int rte_pktmbuf_alloc_bulk(struct rte_mempool *pool,
struct rte_mbuf **mbufs, unsigned count)