From: Anatoly Burakov Date: Fri, 10 Sep 2021 12:30:07 +0000 (+0000) Subject: mem: promote external memory API to stable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=acddc33b3eb92ee7fcc72a5df1bcf462e4a536db;p=dpdk.git mem: promote external memory API to stable As per ABI policy, move the formerly experimental API's to the stable section. Signed-off-by: Anatoly Burakov Acked-by: Ray Kinsella --- 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 d9293cc983..54a3f02dc2 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;