From patchwork Tue Sep 20 16:17:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 15989 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 0B90D68CA; Tue, 20 Sep 2016 18:17:19 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 1CC255698 for ; Tue, 20 Sep 2016 18:17:13 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP; 20 Sep 2016 09:17:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,368,1470726000"; d="scan'208";a="11300493" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by fmsmga006.fm.intel.com with ESMTP; 20 Sep 2016 09:17:12 -0700 From: Ferruh Yigit To: dev@dpdk.org Cc: Olivier Matz Date: Tue, 20 Sep 2016 17:17:08 +0100 Message-Id: <20160920161708.9707-2-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160920161708.9707-1-ferruh.yigit@intel.com> References: <20160920161708.9707-1-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH 2/2] mempool: fix comments for no contiguous flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: ce94a51ff05c ("mempool: add flag for removing phys contiguous constraint") Signed-off-by: Ferruh Yigit --- lib/librte_mempool/rte_mempool.c | 4 +++- lib/librte_mempool/rte_mempool.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index e96d14f..d767f39 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -340,7 +340,9 @@ rte_mempool_free_memchunks(struct rte_mempool *mp) } /* Add objects in the pool, using a physically contiguous memory - * zone. Return the number of objects added, or a negative value + * zone if MEMPOOL_F_NO_PHYS_CONTIG flag is not set. + * + * Return the number of objects added, or a negative value * on error. */ int diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index 6fc331a..291c168 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -798,6 +798,9 @@ rte_mempool_free(struct rte_mempool *mp); * Add a virtually and physically contiguous memory chunk in the pool * where objects can be instanciated. * + * mempool flag MEMPOOL_F_NO_PHYS_CONTIG changes behavior of the function + * and removes physical contiguous constraint. + * * @param mp * A pointer to the mempool structure. * @param vaddr