From patchwork Wed Sep 28 13:59:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 16198 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 772705679; Wed, 28 Sep 2016 15:59:49 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 325A638EB for ; Wed, 28 Sep 2016 15:59:47 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 28 Sep 2016 06:59:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,410,1470726000"; d="scan'208";a="14617110" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by orsmga004.jf.intel.com with ESMTP; 28 Sep 2016 06:59:45 -0700 From: Ferruh Yigit To: dev@dpdk.org Cc: Olivier Matz Date: Wed, 28 Sep 2016 14:59:29 +0100 Message-Id: <20160928135929.4917-2-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160928135929.4917-1-ferruh.yigit@intel.com> References: <20160920161708.9707-1-ferruh.yigit@intel.com> <20160928135929.4917-1-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH v2 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.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index 7a9cc3a..e7a10e0 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -798,6 +798,10 @@ rte_mempool_free(struct rte_mempool *mp); * Add a virtually and physically contiguous memory chunk in the pool * where objects can be instanciated. * + * If the given physical address is unknown (paddr = RTE_BAD_PHYS_ADDR), + * the chunk doesn't need to be physically contiguous (only virtually), + * and allocated objects may span two pages. + * * @param mp * A pointer to the mempool structure. * @param vaddr