From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 42939A0547; Fri, 10 Sep 2021 14:32:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF192411A5; Fri, 10 Sep 2021 14:30:46 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 162BC4114B for ; Fri, 10 Sep 2021 14:30:25 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="243386286" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="243386286" 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:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="450460457" Received: from silpixa00401191.ir.intel.com ([10.55.128.95]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2021 05:30:14 -0700 From: Anatoly Burakov To: dev@dpdk.org, Ray Kinsella Date: Fri, 10 Sep 2021 12:30:06 +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 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v1 4/7] mem: promote memseg 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 --- lib/eal/include/rte_memory.h | 17 ----------------- lib/eal/version.map | 34 +++++++++++++++++----------------- 2 files changed, 17 insertions(+), 34 deletions(-) diff --git a/lib/eal/include/rte_memory.h b/lib/eal/include/rte_memory.h index bba9b5300a..4acb2a72a8 100644 --- a/lib/eal/include/rte_memory.h +++ b/lib/eal/include/rte_memory.h @@ -127,7 +127,6 @@ rte_iova_t rte_mem_virt2iova(const void *virt); * Virtual address corresponding to iova address (or NULL if address does not * exist within DPDK memory map). */ -__rte_experimental void * rte_mem_iova2virt(rte_iova_t iova); @@ -142,7 +141,6 @@ rte_mem_iova2virt(rte_iova_t iova); * @return * Memseg pointer on success, or NULL on error. */ -__rte_experimental struct rte_memseg * rte_mem_virt2memseg(const void *virt, const struct rte_memseg_list *msl); @@ -154,7 +152,6 @@ rte_mem_virt2memseg(const void *virt, const struct rte_memseg_list *msl); * @return * Memseg list to which this virtual address belongs to. */ -__rte_experimental struct rte_memseg_list * rte_mem_virt2memseg_list(const void *virt); @@ -209,7 +206,6 @@ typedef int (*rte_memseg_list_walk_t)(const struct rte_memseg_list *msl, * 1 if stopped by the user * -1 if user function reported error */ -__rte_experimental int rte_memseg_walk(rte_memseg_walk_t func, void *arg); @@ -231,7 +227,6 @@ rte_memseg_walk(rte_memseg_walk_t func, void *arg); * 1 if stopped by the user * -1 if user function reported error */ -__rte_experimental int rte_memseg_contig_walk(rte_memseg_contig_walk_t func, void *arg); @@ -253,7 +248,6 @@ rte_memseg_contig_walk(rte_memseg_contig_walk_t func, void *arg); * 1 if stopped by the user * -1 if user function reported error */ -__rte_experimental int rte_memseg_list_walk(rte_memseg_list_walk_t func, void *arg); @@ -272,7 +266,6 @@ rte_memseg_list_walk(rte_memseg_list_walk_t func, void *arg); * 1 if stopped by the user * -1 if user function reported error */ -__rte_experimental int rte_memseg_walk_thread_unsafe(rte_memseg_walk_t func, void *arg); @@ -291,7 +284,6 @@ rte_memseg_walk_thread_unsafe(rte_memseg_walk_t func, void *arg); * 1 if stopped by the user * -1 if user function reported error */ -__rte_experimental int rte_memseg_contig_walk_thread_unsafe(rte_memseg_contig_walk_t func, void *arg); @@ -310,7 +302,6 @@ rte_memseg_contig_walk_thread_unsafe(rte_memseg_contig_walk_t func, void *arg); * 1 if stopped by the user * -1 if user function reported error */ -__rte_experimental int rte_memseg_list_walk_thread_unsafe(rte_memseg_list_walk_t func, void *arg); @@ -335,7 +326,6 @@ rte_memseg_list_walk_thread_unsafe(rte_memseg_list_walk_t func, void *arg); * - ENOENT - ``ms`` is an unused segment * - ENOTSUP - segment fd's are not supported */ -__rte_experimental int rte_memseg_get_fd(const struct rte_memseg *ms); @@ -360,7 +350,6 @@ rte_memseg_get_fd(const struct rte_memseg *ms); * - ENOENT - ``ms`` is an unused segment * - ENOTSUP - segment fd's are not supported */ -__rte_experimental int rte_memseg_get_fd_thread_unsafe(const struct rte_memseg *ms); @@ -385,7 +374,6 @@ rte_memseg_get_fd_thread_unsafe(const struct rte_memseg *ms); * - ENOENT - ``ms`` is an unused segment * - ENOTSUP - segment fd's are not supported */ -__rte_experimental int rte_memseg_get_fd_offset(const struct rte_memseg *ms, size_t *offset); @@ -410,7 +398,6 @@ rte_memseg_get_fd_offset(const struct rte_memseg *ms, size_t *offset); * - ENOENT - ``ms`` is an unused segment * - ENOTSUP - segment fd's are not supported */ -__rte_experimental int rte_memseg_get_fd_offset_thread_unsafe(const struct rte_memseg *ms, size_t *offset); @@ -678,7 +665,6 @@ typedef void (*rte_mem_event_callback_t)(enum rte_mem_event event_type, * -1 on unsuccessful callback register, with rte_errno value indicating * reason for failure. */ -__rte_experimental int rte_mem_event_callback_register(const char *name, rte_mem_event_callback_t clb, void *arg); @@ -697,7 +683,6 @@ rte_mem_event_callback_register(const char *name, rte_mem_event_callback_t clb, * -1 on unsuccessful callback unregister, with rte_errno value indicating * reason for failure. */ -__rte_experimental int rte_mem_event_callback_unregister(const char *name, void *arg); @@ -747,7 +732,6 @@ typedef int (*rte_mem_alloc_validator_t)(int socket_id, * -1 on unsuccessful callback register, with rte_errno value indicating * reason for failure. */ -__rte_experimental int rte_mem_alloc_validator_register(const char *name, rte_mem_alloc_validator_t clb, int socket_id, size_t limit); @@ -766,7 +750,6 @@ rte_mem_alloc_validator_register(const char *name, * -1 on unsuccessful callback unregister, with rte_errno value indicating * reason for failure. */ -__rte_experimental int rte_mem_alloc_validator_unregister(const char *name, int socket_id); diff --git a/lib/eal/version.map b/lib/eal/version.map index 6f768e66d0..359b784c16 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -168,12 +168,29 @@ DPDK_22 { rte_mcfg_tailq_read_unlock; rte_mcfg_tailq_write_lock; rte_mcfg_tailq_write_unlock; + rte_mem_alloc_validator_register; + rte_mem_alloc_validator_unregister; + rte_mem_event_callback_register; + rte_mem_event_callback_unregister; + rte_mem_iova2virt; rte_mem_lock_page; rte_mem_virt2iova; + rte_mem_virt2memseg; + rte_mem_virt2memseg_list; rte_mem_virt2phy; rte_memdump; rte_memory_get_nchannel; rte_memory_get_nrank; + rte_memseg_contig_walk; + rte_memseg_contig_walk_thread_unsafe; + rte_memseg_get_fd; + rte_memseg_get_fd_offset; + rte_memseg_get_fd_offset_thread_unsafe; + rte_memseg_get_fd_thread_unsafe; + rte_memseg_list_walk; + rte_memseg_list_walk_thread_unsafe; + rte_memseg_walk; + rte_memseg_walk_thread_unsafe; rte_memzone_dump; rte_memzone_free; rte_memzone_lookup; @@ -272,17 +289,7 @@ EXPERIMENTAL { rte_dev_event_monitor_start; # WINDOWS_NO_EXPORT rte_dev_event_monitor_stop; # WINDOWS_NO_EXPORT rte_log_register_type_and_pick_level; - rte_mem_alloc_validator_register; - rte_mem_alloc_validator_unregister; rte_mem_check_dma_mask; - rte_mem_event_callback_register; - rte_mem_event_callback_unregister; - rte_mem_iova2virt; - rte_mem_virt2memseg; - rte_mem_virt2memseg_list; - rte_memseg_contig_walk; - rte_memseg_list_walk; - rte_memseg_walk; # added in 18.08 rte_class_find; @@ -291,9 +298,6 @@ EXPERIMENTAL { rte_class_unregister; rte_dev_iterator_init; rte_dev_iterator_next; - rte_memseg_contig_walk_thread_unsafe; - rte_memseg_list_walk_thread_unsafe; - rte_memseg_walk_thread_unsafe; # added in 18.11 rte_delay_us_sleep; @@ -302,10 +306,6 @@ EXPERIMENTAL { rte_dev_hotplug_handle_enable; # WINDOWS_NO_EXPORT rte_mem_check_dma_mask_thread_unsafe; rte_mem_set_dma_mask; - rte_memseg_get_fd; - rte_memseg_get_fd_offset; - rte_memseg_get_fd_offset_thread_unsafe; - rte_memseg_get_fd_thread_unsafe; # added in 19.02 rte_extmem_attach; -- 2.25.1