From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 725DE7CAC; Wed, 26 Jul 2017 14:19:53 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2017 05:19:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,415,1496127600"; d="scan'208";a="1176616713" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by fmsmga001.fm.intel.com with ESMTP; 26 Jul 2017 05:19:47 -0700 From: Pablo de Lara To: olivier.matz@6wind.com Cc: dev@dpdk.org, Pablo de Lara , stable@dpdk.org Date: Wed, 26 Jul 2017 05:20:05 +0100 Message-Id: <20170726042005.7897-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170726040509.7408-1-pablo.de.lara.guarch@intel.com> References: <20170726040509.7408-1-pablo.de.lara.guarch@intel.com> Subject: [dpdk-stable] [PATCH v2] mbuf: fix mbuf bulk alloc Doxygen X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2017 12:19:54 -0000 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") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara --- Changes in v2: - CC stable lib/librte_mbuf/rte_mbuf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index 55206d9..eaed7ee 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -1138,6 +1138,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) -- 2.9.4