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 F0EA014E8 for ; Fri, 25 May 2018 15:39:47 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 May 2018 06:39:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,440,1520924400"; d="scan'208";a="57555664" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga004.fm.intel.com with ESMTP; 25 May 2018 06:39:45 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w4PDdjeY007169; Fri, 25 May 2018 14:39:45 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id w4PDdjnk023107; Fri, 25 May 2018 14:39:45 +0100 Received: (from aburakov@localhost) by sivswdev01.ir.intel.com with LOCAL id w4PDdjsr023103; Fri, 25 May 2018 14:39:45 +0100 From: Anatoly Burakov To: dev@dpdk.org Cc: thomas@monjalon.net Date: Fri, 25 May 2018 14:39:45 +0100 Message-Id: X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <693c688e4189c1f7cb131ab76a287743011743b9.1527255565.git.anatoly.burakov@intel.com> References: <693c688e4189c1f7cb131ab76a287743011743b9.1527255565.git.anatoly.burakov@intel.com> In-Reply-To: <693c688e4189c1f7cb131ab76a287743011743b9.1527255565.git.anatoly.burakov@intel.com> References: <693c688e4189c1f7cb131ab76a287743011743b9.1527255565.git.anatoly.burakov@intel.com> Subject: [dpdk-dev] [PATCH 2/2] memzone: clarify support for zero-length memzones X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2018 13:39:48 -0000 Currently, memzone allocation with length set to 0 that are also IOVA-contiguous is not supported. Document this limitation. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/include/rte_memzone.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/librte_eal/common/include/rte_memzone.h b/lib/librte_eal/common/include/rte_memzone.h index a4c9bd6..ef370fa 100644 --- a/lib/librte_eal/common/include/rte_memzone.h +++ b/lib/librte_eal/common/include/rte_memzone.h @@ -81,6 +81,9 @@ struct rte_memzone { * memzones from memory that is already available. It will not trigger any * new allocations. * + * @note Reserving IOVA-contiguous memzones with len set to 0 is not currently + * supported. + * * @param name * The name of the memzone. If it already exists, the function will * fail and return NULL. @@ -138,6 +141,9 @@ const struct rte_memzone *rte_memzone_reserve(const char *name, * memzones from memory that is already available. It will not trigger any * new allocations. * + * @note Reserving IOVA-contiguous memzones with len set to 0 is not currently + * supported. + * * @param name * The name of the memzone. If it already exists, the function will * fail and return NULL. @@ -200,6 +206,9 @@ const struct rte_memzone *rte_memzone_reserve_aligned(const char *name, * memzones from memory that is already available. It will not trigger any * new allocations. * + * @note Reserving IOVA-contiguous memzones with len set to 0 is not currently + * supported. + * * @param name * The name of the memzone. If it already exists, the function will * fail and return NULL. -- 2.7.4