From: Anatoly Burakov Date: Fri, 25 May 2018 13:39:45 +0000 (+0100) Subject: memzone: clarify support for zero-length memzones X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cc789005fc66f96f1471ceb53be4044ba9dbcd74;p=dpdk.git memzone: clarify support for zero-length memzones Currently, memzone allocation with length set to 0 that are also IOVA-contiguous is not supported. Document this limitation. Signed-off-by: Anatoly Burakov --- diff --git a/lib/librte_eal/common/include/rte_memzone.h b/lib/librte_eal/common/include/rte_memzone.h index a4c9bd68fa..ef370fa6fc 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.