From patchwork Fri Sep 10 12:30:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Burakov, Anatoly" X-Patchwork-Id: 98617 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C86ECA0547; Fri, 10 Sep 2021 14:32:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AC1A41186; Fri, 10 Sep 2021 14:30:40 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id AB3674113D for ; Fri, 10 Sep 2021 14:30:24 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="243386292" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="243386292" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2021 05:30:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="450460462" Received: from silpixa00401191.ir.intel.com ([10.55.128.95]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2021 05:30:15 -0700 From: Anatoly Burakov To: dev@dpdk.org, Ray Kinsella Date: Fri, 10 Sep 2021 12:30:07 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: <029012e59f555be16bed829229e8b48016157371.1631277001.git.anatoly.burakov@intel.com> References: <029012e59f555be16bed829229e8b48016157371.1631277001.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v1 5/7] mem: promote extmem API's to stable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" As per ABI policy, move the formerly experimental API's to the stable section. Signed-off-by: Anatoly Burakov Acked-by: Ray Kinsella --- lib/eal/include/rte_memory.h | 16 ---------------- lib/eal/version.map | 10 ++++------ 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/lib/eal/include/rte_memory.h b/lib/eal/include/rte_memory.h index 4acb2a72a8..c68b9d5e62 100644 --- a/lib/eal/include/rte_memory.h +++ b/lib/eal/include/rte_memory.h @@ -403,9 +403,6 @@ rte_memseg_get_fd_offset_thread_unsafe(const struct rte_memseg *ms, size_t *offset); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Register external memory chunk with DPDK. * * @note Using this API is mutually exclusive with ``rte_malloc`` family of @@ -439,15 +436,11 @@ rte_memseg_get_fd_offset_thread_unsafe(const struct rte_memseg *ms, * EEXIST - memory chunk is already registered * ENOSPC - no more space in internal config to store a new memory chunk */ -__rte_experimental int rte_extmem_register(void *va_addr, size_t len, rte_iova_t iova_addrs[], unsigned int n_pages, size_t page_sz); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Unregister external memory chunk with DPDK. * * @note Using this API is mutually exclusive with ``rte_malloc`` family of @@ -470,14 +463,10 @@ rte_extmem_register(void *va_addr, size_t len, rte_iova_t iova_addrs[], * EINVAL - one of the parameters was invalid * ENOENT - memory chunk was not found */ -__rte_experimental int rte_extmem_unregister(void *va_addr, size_t len); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Attach to external memory chunk registered in another process. * * @note Using this API is mutually exclusive with ``rte_malloc`` family of @@ -497,14 +486,10 @@ rte_extmem_unregister(void *va_addr, size_t len); * EINVAL - one of the parameters was invalid * ENOENT - memory chunk was not found */ -__rte_experimental int rte_extmem_attach(void *va_addr, size_t len); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Detach from external memory chunk registered in another process. * * @note Using this API is mutually exclusive with ``rte_malloc`` family of @@ -524,7 +509,6 @@ rte_extmem_attach(void *va_addr, size_t len); * EINVAL - one of the parameters was invalid * ENOENT - memory chunk was not found */ -__rte_experimental int rte_extmem_detach(void *va_addr, size_t len); diff --git a/lib/eal/version.map b/lib/eal/version.map index 359b784c16..420779e1aa 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -70,6 +70,10 @@ DPDK_22 { rte_epoll_ctl; rte_epoll_wait; rte_exit; + rte_extmem_attach; + rte_extmem_detach; + rte_extmem_register; + rte_extmem_unregister; rte_fbarray_attach; rte_fbarray_destroy; rte_fbarray_detach; @@ -307,12 +311,6 @@ EXPERIMENTAL { rte_mem_check_dma_mask_thread_unsafe; rte_mem_set_dma_mask; - # added in 19.02 - rte_extmem_attach; - rte_extmem_detach; - rte_extmem_register; - rte_extmem_unregister; - # added in 19.05 rte_dev_dma_map; rte_dev_dma_unmap;