From patchwork Fri Sep 10 12:30:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 98618 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 94310A0547; Fri, 10 Sep 2021 14:32:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D9794118A; Fri, 10 Sep 2021 14:30:41 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id AC15841140 for ; Fri, 10 Sep 2021 14:30:24 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="243386268" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="243386268" 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:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="450460441" Received: from silpixa00401191.ir.intel.com ([10.55.128.95]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2021 05:30:10 -0700 From: Anatoly Burakov To: dev@dpdk.org, Ray Kinsella Date: Fri, 10 Sep 2021 12:30:03 +0000 Message-Id: <029012e59f555be16bed829229e8b48016157371.1631277001.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v1 1/7] eal: promote IPC 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_eal.h | 24 ------------------------ lib/eal/version.map | 14 ++++++-------- 2 files changed, 6 insertions(+), 32 deletions(-) diff --git a/lib/eal/include/rte_eal.h b/lib/eal/include/rte_eal.h index eaf6469e50..f1af86bfff 100644 --- a/lib/eal/include/rte_eal.h +++ b/lib/eal/include/rte_eal.h @@ -209,9 +209,6 @@ typedef int (*rte_mp_async_reply_t)(const struct rte_mp_msg *request, const struct rte_mp_reply *reply); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Register an action function for primary/secondary communication. * * Call this function to register an action, if the calling component wants @@ -231,14 +228,10 @@ typedef int (*rte_mp_async_reply_t)(const struct rte_mp_msg *request, * - 0 on success. * - (<0) on failure. */ -__rte_experimental int rte_mp_action_register(const char *name, rte_mp_t action); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Unregister an action function for primary/secondary communication. * * Call this function to unregister an action if the calling component does @@ -252,14 +245,10 @@ rte_mp_action_register(const char *name, rte_mp_t action); * The name argument plays as the nonredundant key to find the action. * */ -__rte_experimental void rte_mp_action_unregister(const char *name); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Send a message to the peer process. * * This function will send a message which will be responded by the action @@ -272,14 +261,10 @@ rte_mp_action_unregister(const char *name); * - On success, return 0. * - On failure, return -1, and the reason will be stored in rte_errno. */ -__rte_experimental int rte_mp_sendmsg(struct rte_mp_msg *msg); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Send a request to the peer process and expect a reply. * * This function sends a request message to the peer process, and will @@ -307,15 +292,11 @@ rte_mp_sendmsg(struct rte_mp_msg *msg); * - On success, return 0. * - On failure, return -1, and the reason will be stored in rte_errno. */ -__rte_experimental int rte_mp_request_sync(struct rte_mp_msg *req, struct rte_mp_reply *reply, const struct timespec *ts); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Send a request to the peer process and expect a reply in a separate callback. * * This function sends a request message to the peer process, and will not @@ -337,15 +318,11 @@ rte_mp_request_sync(struct rte_mp_msg *req, struct rte_mp_reply *reply, * - On success, return 0. * - On failure, return -1, and the reason will be stored in rte_errno. */ -__rte_experimental int rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts, rte_mp_async_reply_t clb); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Send a reply to the peer process. * * This function will send a reply message in response to a request message @@ -366,7 +343,6 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts, * - On success, return 0. * - On failure, return -1, and the reason will be stored in rte_errno. */ -__rte_experimental int rte_mp_reply(struct rte_mp_msg *msg, const char *peer); diff --git a/lib/eal/version.map b/lib/eal/version.map index beeb986adc..c6e78d68d1 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -146,6 +146,12 @@ DPDK_22 { rte_memzone_reserve_aligned; rte_memzone_reserve_bounded; rte_memzone_walk; + rte_mp_action_register; + rte_mp_action_unregister; + rte_mp_reply; + rte_mp_request_async; + rte_mp_request_sync; + rte_mp_sendmsg; rte_openlog_stream; rte_rand; rte_realloc; @@ -224,12 +230,6 @@ DPDK_22 { EXPERIMENTAL { global: - # added in 18.02 - rte_mp_action_register; - rte_mp_action_unregister; - rte_mp_reply; - rte_mp_sendmsg; - # added in 18.05 rte_dev_event_callback_register; rte_dev_event_callback_unregister; @@ -264,8 +264,6 @@ EXPERIMENTAL { rte_memseg_contig_walk; rte_memseg_list_walk; rte_memseg_walk; - rte_mp_request_async; - rte_mp_request_sync; # added in 18.08 rte_class_find; From patchwork Fri Sep 10 12:30:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 98622 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 ECE3CA0547; Fri, 10 Sep 2021 14:32:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0A6B411A0; Fri, 10 Sep 2021 14:30:45 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 8897E41149 for ; Fri, 10 Sep 2021 14:30:25 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="243386275" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="243386275" 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:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="450460447" Received: from silpixa00401191.ir.intel.com ([10.55.128.95]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2021 05:30:11 -0700 From: Anatoly Burakov To: dev@dpdk.org, Ray Kinsella Date: Fri, 10 Sep 2021 12:30:04 +0000 Message-Id: <73806a6104c7b0a65fd48652566201676a5faf42.1631277001.git.anatoly.burakov@intel.com> 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 2/7] fbarray: promote 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_fbarray.h | 26 ------------------ lib/eal/version.map | 52 +++++++++++++++++------------------ 2 files changed, 26 insertions(+), 52 deletions(-) diff --git a/lib/eal/include/rte_fbarray.h b/lib/eal/include/rte_fbarray.h index 6dccdbec98..c64868711e 100644 --- a/lib/eal/include/rte_fbarray.h +++ b/lib/eal/include/rte_fbarray.h @@ -74,7 +74,6 @@ struct rte_fbarray { * - 0 on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_init(struct rte_fbarray *arr, const char *name, unsigned int len, unsigned int elt_sz); @@ -97,7 +96,6 @@ rte_fbarray_init(struct rte_fbarray *arr, const char *name, unsigned int len, * - 0 on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_attach(struct rte_fbarray *arr); @@ -119,7 +117,6 @@ rte_fbarray_attach(struct rte_fbarray *arr); * - 0 on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_destroy(struct rte_fbarray *arr); @@ -138,7 +135,6 @@ rte_fbarray_destroy(struct rte_fbarray *arr); * - 0 on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_detach(struct rte_fbarray *arr); @@ -156,7 +152,6 @@ rte_fbarray_detach(struct rte_fbarray *arr); * - non-NULL pointer on success. * - NULL on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental void * rte_fbarray_get(const struct rte_fbarray *arr, unsigned int idx); @@ -174,7 +169,6 @@ rte_fbarray_get(const struct rte_fbarray *arr, unsigned int idx); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_idx(const struct rte_fbarray *arr, const void *elt); @@ -192,7 +186,6 @@ rte_fbarray_find_idx(const struct rte_fbarray *arr, const void *elt); * - 0 on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_set_used(struct rte_fbarray *arr, unsigned int idx); @@ -210,7 +203,6 @@ rte_fbarray_set_used(struct rte_fbarray *arr, unsigned int idx); * - 0 on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_set_free(struct rte_fbarray *arr, unsigned int idx); @@ -229,7 +221,6 @@ rte_fbarray_set_free(struct rte_fbarray *arr, unsigned int idx); * - 0 if element is unused. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_is_used(struct rte_fbarray *arr, unsigned int idx); @@ -247,7 +238,6 @@ rte_fbarray_is_used(struct rte_fbarray *arr, unsigned int idx); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_next_free(struct rte_fbarray *arr, unsigned int start); @@ -265,7 +255,6 @@ rte_fbarray_find_next_free(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_next_used(struct rte_fbarray *arr, unsigned int start); @@ -286,7 +275,6 @@ rte_fbarray_find_next_used(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_next_n_free(struct rte_fbarray *arr, unsigned int start, unsigned int n); @@ -308,7 +296,6 @@ rte_fbarray_find_next_n_free(struct rte_fbarray *arr, unsigned int start, * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_next_n_used(struct rte_fbarray *arr, unsigned int start, unsigned int n); @@ -327,7 +314,6 @@ rte_fbarray_find_next_n_used(struct rte_fbarray *arr, unsigned int start, * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_contig_free(struct rte_fbarray *arr, unsigned int start); @@ -346,7 +332,6 @@ rte_fbarray_find_contig_free(struct rte_fbarray *arr, * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_contig_used(struct rte_fbarray *arr, unsigned int start); @@ -363,7 +348,6 @@ rte_fbarray_find_contig_used(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_prev_free(struct rte_fbarray *arr, unsigned int start); @@ -381,7 +365,6 @@ rte_fbarray_find_prev_free(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_prev_used(struct rte_fbarray *arr, unsigned int start); @@ -403,7 +386,6 @@ rte_fbarray_find_prev_used(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_prev_n_free(struct rte_fbarray *arr, unsigned int start, unsigned int n); @@ -426,7 +408,6 @@ rte_fbarray_find_prev_n_free(struct rte_fbarray *arr, unsigned int start, * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_prev_n_used(struct rte_fbarray *arr, unsigned int start, unsigned int n); @@ -446,7 +427,6 @@ rte_fbarray_find_prev_n_used(struct rte_fbarray *arr, unsigned int start, * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_rev_contig_free(struct rte_fbarray *arr, unsigned int start); @@ -466,7 +446,6 @@ rte_fbarray_find_rev_contig_free(struct rte_fbarray *arr, * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_rev_contig_used(struct rte_fbarray *arr, unsigned int start); @@ -484,7 +463,6 @@ rte_fbarray_find_rev_contig_used(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_biggest_free(struct rte_fbarray *arr, unsigned int start); @@ -502,7 +480,6 @@ rte_fbarray_find_biggest_free(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_biggest_used(struct rte_fbarray *arr, unsigned int start); @@ -521,7 +498,6 @@ rte_fbarray_find_biggest_used(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_rev_biggest_free(struct rte_fbarray *arr, unsigned int start); @@ -540,7 +516,6 @@ rte_fbarray_find_rev_biggest_free(struct rte_fbarray *arr, unsigned int start); * - non-negative integer on success. * - -1 on failure, with ``rte_errno`` indicating reason for failure. */ -__rte_experimental int rte_fbarray_find_rev_biggest_used(struct rte_fbarray *arr, unsigned int start); @@ -554,7 +529,6 @@ rte_fbarray_find_rev_biggest_used(struct rte_fbarray *arr, unsigned int start); * @param f * File object to dump information into. */ -__rte_experimental void rte_fbarray_dump_metadata(struct rte_fbarray *arr, FILE *f); diff --git a/lib/eal/version.map b/lib/eal/version.map index c6e78d68d1..d3b2b07a78 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -70,6 +70,32 @@ DPDK_22 { rte_epoll_ctl; rte_epoll_wait; rte_exit; + rte_fbarray_attach; + rte_fbarray_destroy; + rte_fbarray_detach; + rte_fbarray_dump_metadata; + rte_fbarray_find_biggest_free; + rte_fbarray_find_biggest_used; + rte_fbarray_find_contig_free; + rte_fbarray_find_contig_used; + rte_fbarray_find_idx; + rte_fbarray_find_next_free; + rte_fbarray_find_next_n_free; + rte_fbarray_find_next_n_used; + rte_fbarray_find_next_used; + rte_fbarray_find_prev_free; + rte_fbarray_find_prev_n_free; + rte_fbarray_find_prev_n_used; + rte_fbarray_find_prev_used; + rte_fbarray_find_rev_contig_free; + rte_fbarray_find_rev_contig_used; + rte_fbarray_find_rev_biggest_free; + rte_fbarray_find_rev_biggest_used; + rte_fbarray_get; + rte_fbarray_init; + rte_fbarray_is_used; + rte_fbarray_set_free; + rte_fbarray_set_used; rte_free; rte_get_hpet_cycles; # WINDOWS_NO_EXPORT rte_get_hpet_hz; # WINDOWS_NO_EXPORT @@ -235,22 +261,6 @@ EXPERIMENTAL { rte_dev_event_callback_unregister; rte_dev_event_monitor_start; # WINDOWS_NO_EXPORT rte_dev_event_monitor_stop; # WINDOWS_NO_EXPORT - rte_fbarray_attach; - rte_fbarray_destroy; - rte_fbarray_detach; - rte_fbarray_dump_metadata; - rte_fbarray_find_contig_free; - rte_fbarray_find_contig_used; - rte_fbarray_find_idx; - rte_fbarray_find_next_free; - rte_fbarray_find_next_n_free; - rte_fbarray_find_next_n_used; - rte_fbarray_find_next_used; - rte_fbarray_get; - rte_fbarray_init; - rte_fbarray_is_used; - rte_fbarray_set_free; - rte_fbarray_set_used; rte_log_register_type_and_pick_level; rte_malloc_dump_heaps; rte_mem_alloc_validator_register; @@ -272,12 +282,6 @@ EXPERIMENTAL { rte_class_unregister; rte_dev_iterator_init; rte_dev_iterator_next; - rte_fbarray_find_prev_free; - rte_fbarray_find_prev_n_free; - rte_fbarray_find_prev_n_used; - rte_fbarray_find_prev_used; - rte_fbarray_find_rev_contig_free; - rte_fbarray_find_rev_contig_used; rte_memseg_contig_walk_thread_unsafe; rte_memseg_list_walk_thread_unsafe; rte_memseg_walk_thread_unsafe; @@ -311,10 +315,6 @@ EXPERIMENTAL { # added in 19.05 rte_dev_dma_map; rte_dev_dma_unmap; - rte_fbarray_find_biggest_free; - rte_fbarray_find_biggest_used; - rte_fbarray_find_rev_biggest_free; - rte_fbarray_find_rev_biggest_used; rte_intr_callback_unregister_pending; rte_realloc_socket; From patchwork Fri Sep 10 12:30:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 98625 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 56728A0547; Fri, 10 Sep 2021 14:32:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1EA15411B1; Fri, 10 Sep 2021 14:30:49 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 803154114A for ; Fri, 10 Sep 2021 14:30:26 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="243386282" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="243386282" 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:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="450460454" Received: from silpixa00401191.ir.intel.com ([10.55.128.95]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2021 05:30:13 -0700 From: Anatoly Burakov To: dev@dpdk.org, Ray Kinsella Date: Fri, 10 Sep 2021 12:30:05 +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 3/7] eal: promote malloc 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_malloc.h | 10 ---------- lib/eal/version.map | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/lib/eal/include/rte_malloc.h b/lib/eal/include/rte_malloc.h index 895bb6e849..ed02e15119 100644 --- a/lib/eal/include/rte_malloc.h +++ b/lib/eal/include/rte_malloc.h @@ -157,7 +157,6 @@ rte_realloc(void *ptr, size_t size, unsigned int align) * align is not a power of two). * - Otherwise, the pointer to the reallocated memory. */ -__rte_experimental void * rte_realloc_socket(void *ptr, size_t size, unsigned int align, int socket) __rte_alloc_size(2); @@ -339,7 +338,6 @@ rte_malloc_get_socket_stats(int socket, * EPERM - attempted to add memory to a reserved heap * ENOSPC - no more space in internal config to store a new memory chunk */ -__rte_experimental int rte_malloc_heap_memory_add(const char *heap_name, void *va_addr, size_t len, rte_iova_t iova_addrs[], unsigned int n_pages, size_t page_sz); @@ -371,7 +369,6 @@ rte_malloc_heap_memory_add(const char *heap_name, void *va_addr, size_t len, * ENOENT - heap or memory chunk was not found * EBUSY - memory chunk still contains data */ -__rte_experimental int rte_malloc_heap_memory_remove(const char *heap_name, void *va_addr, size_t len); @@ -396,7 +393,6 @@ rte_malloc_heap_memory_remove(const char *heap_name, void *va_addr, size_t len); * EPERM - attempted to attach memory to a reserved heap * ENOENT - heap or memory chunk was not found */ -__rte_experimental int rte_malloc_heap_memory_attach(const char *heap_name, void *va_addr, size_t len); @@ -421,7 +417,6 @@ rte_malloc_heap_memory_attach(const char *heap_name, void *va_addr, size_t len); * EPERM - attempted to detach memory from a reserved heap * ENOENT - heap or memory chunk was not found */ -__rte_experimental int rte_malloc_heap_memory_detach(const char *heap_name, void *va_addr, size_t len); @@ -441,7 +436,6 @@ rte_malloc_heap_memory_detach(const char *heap_name, void *va_addr, size_t len); * EEXIST - heap by name of ``heap_name`` already exists * ENOSPC - no more space in internal config to store a new heap */ -__rte_experimental int rte_malloc_heap_create(const char *heap_name); @@ -465,7 +459,6 @@ rte_malloc_heap_create(const char *heap_name); * EPERM - attempting to destroy reserved heap * EBUSY - heap still contains data */ -__rte_experimental int rte_malloc_heap_destroy(const char *heap_name); @@ -480,7 +473,6 @@ rte_malloc_heap_destroy(const char *heap_name); * EINVAL - ``name`` was NULL * ENOENT - heap identified by the name ``name`` was not found */ -__rte_experimental int rte_malloc_heap_get_socket(const char *name); @@ -496,7 +488,6 @@ rte_malloc_heap_get_socket(const char *name); * 0 if socket ID refers to internal DPDK memory * -1 if socket ID is invalid */ -__rte_experimental int rte_malloc_heap_socket_is_external(int socket_id); @@ -527,7 +518,6 @@ rte_malloc_dump_stats(FILE *f, const char *type); * @param f * A pointer to a file for output */ -__rte_experimental void rte_malloc_dump_heaps(FILE *f); diff --git a/lib/eal/version.map b/lib/eal/version.map index d3b2b07a78..6f768e66d0 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -141,8 +141,17 @@ DPDK_22 { rte_log_set_level_pattern; rte_log_set_level_regexp; rte_malloc; + rte_malloc_dump_heaps; rte_malloc_dump_stats; rte_malloc_get_socket_stats; + rte_malloc_heap_create; + rte_malloc_heap_destroy; + rte_malloc_heap_get_socket; + rte_malloc_heap_memory_add; + rte_malloc_heap_memory_attach; + rte_malloc_heap_memory_detach; + rte_malloc_heap_memory_remove; + rte_malloc_heap_socket_is_external; rte_malloc_set_limit; rte_malloc_socket; rte_malloc_validate; @@ -181,6 +190,7 @@ DPDK_22 { rte_openlog_stream; rte_rand; rte_realloc; + rte_realloc_socket; rte_reciprocal_value; rte_reciprocal_value_u64; rte_rtm_supported; @@ -262,7 +272,6 @@ 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_malloc_dump_heaps; rte_mem_alloc_validator_register; rte_mem_alloc_validator_unregister; rte_mem_check_dma_mask; @@ -291,14 +300,6 @@ EXPERIMENTAL { rte_dev_event_callback_process; rte_dev_hotplug_handle_disable; # WINDOWS_NO_EXPORT rte_dev_hotplug_handle_enable; # WINDOWS_NO_EXPORT - rte_malloc_heap_create; - rte_malloc_heap_destroy; - rte_malloc_heap_get_socket; - rte_malloc_heap_memory_add; - rte_malloc_heap_memory_attach; - rte_malloc_heap_memory_detach; - rte_malloc_heap_memory_remove; - rte_malloc_heap_socket_is_external; rte_mem_check_dma_mask_thread_unsafe; rte_mem_set_dma_mask; rte_memseg_get_fd; @@ -316,7 +317,6 @@ EXPERIMENTAL { rte_dev_dma_map; rte_dev_dma_unmap; rte_intr_callback_unregister_pending; - rte_realloc_socket; # added in 19.08 rte_intr_ack; From patchwork Fri Sep 10 12:30:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 98623 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 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 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 Acked-by: Ray Kinsella --- 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; 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: Anatoly Burakov 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; From patchwork Fri Sep 10 12:30:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 98621 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 CF9C8A0547; Fri, 10 Sep 2021 14:32:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C9B84119B; Fri, 10 Sep 2021 14:30:44 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 894294114A for ; Fri, 10 Sep 2021 14:30:25 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="243386297" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="243386297" 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:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="450460467" Received: from silpixa00401191.ir.intel.com ([10.55.128.95]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2021 05:30:16 -0700 From: Anatoly Burakov To: dev@dpdk.org, Ray Kinsella Date: Fri, 10 Sep 2021 12:30:08 +0000 Message-Id: <59c3f27466100834f4d8fc2d43843fc581458903.1631277001.git.anatoly.burakov@intel.com> 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 6/7] mem: promote DMA mask 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 | 12 ------------ lib/eal/version.map | 6 +++--- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/lib/eal/include/rte_memory.h b/lib/eal/include/rte_memory.h index c68b9d5e62..6d018629ae 100644 --- a/lib/eal/include/rte_memory.h +++ b/lib/eal/include/rte_memory.h @@ -553,22 +553,15 @@ unsigned rte_memory_get_nchannel(void); unsigned rte_memory_get_nrank(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Check if all currently allocated memory segments are compliant with * supplied DMA address width. * * @param maskbits * Address width to check against. */ -__rte_experimental int rte_mem_check_dma_mask(uint8_t maskbits); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Check if all currently allocated memory segments are compliant with * supplied DMA address width. This function will use * rte_memseg_walk_thread_unsafe instead of rte_memseg_walk implying @@ -581,18 +574,13 @@ int rte_mem_check_dma_mask(uint8_t maskbits); * @param maskbits * Address width to check against. */ -__rte_experimental int rte_mem_check_dma_mask_thread_unsafe(uint8_t maskbits); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Set dma mask to use once memory initialization is done. Previous functions * rte_mem_check_dma_mask and rte_mem_check_dma_mask_thread_unsafe can not be * used safely until memory has been initialized. */ -__rte_experimental void rte_mem_set_dma_mask(uint8_t maskbits); /** diff --git a/lib/eal/version.map b/lib/eal/version.map index 420779e1aa..ebafb05e90 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -174,10 +174,13 @@ DPDK_22 { rte_mcfg_tailq_write_unlock; rte_mem_alloc_validator_register; rte_mem_alloc_validator_unregister; + rte_mem_check_dma_mask; + rte_mem_check_dma_mask_thread_unsafe; rte_mem_event_callback_register; rte_mem_event_callback_unregister; rte_mem_iova2virt; rte_mem_lock_page; + rte_mem_set_dma_mask; rte_mem_virt2iova; rte_mem_virt2memseg; rte_mem_virt2memseg_list; @@ -293,7 +296,6 @@ 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_check_dma_mask; # added in 18.08 rte_class_find; @@ -308,8 +310,6 @@ EXPERIMENTAL { rte_dev_event_callback_process; rte_dev_hotplug_handle_disable; # WINDOWS_NO_EXPORT rte_dev_hotplug_handle_enable; # WINDOWS_NO_EXPORT - rte_mem_check_dma_mask_thread_unsafe; - rte_mem_set_dma_mask; # added in 19.05 rte_dev_dma_map; From patchwork Fri Sep 10 12:30:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 98620 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 3BFB0A0547; Fri, 10 Sep 2021 14:32:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 77B4141196; Fri, 10 Sep 2021 14:30:43 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 73FF041148 for ; Fri, 10 Sep 2021 14:30:25 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="243386303" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="243386303" 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:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="450460478" Received: from silpixa00401191.ir.intel.com ([10.55.128.95]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2021 05:30:17 -0700 From: Anatoly Burakov To: dev@dpdk.org, Ray Kinsella Date: Fri, 10 Sep 2021 12:30:09 +0000 Message-Id: <37d174136f8f8dcaa47f875e196bf2d9ec7d5228.1631277001.git.anatoly.burakov@intel.com> 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 7/7] eal: promote mcfg 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_eal_memconfig.h | 12 ------------ lib/eal/version.map | 8 +++----- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/lib/eal/include/rte_eal_memconfig.h b/lib/eal/include/rte_eal_memconfig.h index dede2ee324..44f5324906 100644 --- a/lib/eal/include/rte_eal_memconfig.h +++ b/lib/eal/include/rte_eal_memconfig.h @@ -92,33 +92,21 @@ void rte_mcfg_mempool_write_unlock(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Lock the internal EAL Timer Library lock for exclusive access. */ -__rte_experimental void rte_mcfg_timer_lock(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Unlock the internal EAL Timer Library lock for exclusive access. */ -__rte_experimental void rte_mcfg_timer_unlock(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * If true, pages are put in single files (per memseg list), * as opposed to creating a file per page. */ -__rte_experimental bool rte_mcfg_get_single_file_segments(void); diff --git a/lib/eal/version.map b/lib/eal/version.map index ebafb05e90..ec05d1164b 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -160,6 +160,7 @@ DPDK_22 { rte_malloc_socket; rte_malloc_validate; rte_malloc_virt2iova; + rte_mcfg_get_single_file_segments; rte_mcfg_mem_read_lock; rte_mcfg_mem_read_unlock; rte_mcfg_mem_write_lock; @@ -172,6 +173,8 @@ DPDK_22 { rte_mcfg_tailq_read_unlock; rte_mcfg_tailq_write_lock; rte_mcfg_tailq_write_unlock; + rte_mcfg_timer_lock; + rte_mcfg_timer_unlock; rte_mem_alloc_validator_register; rte_mem_alloc_validator_unregister; rte_mem_check_dma_mask; @@ -320,13 +323,8 @@ EXPERIMENTAL { rte_intr_ack; rte_lcore_cpuset; rte_lcore_to_cpu_id; - rte_mcfg_timer_lock; - rte_mcfg_timer_unlock; rte_rand_max; # WINDOWS_NO_EXPORT - # added in 19.11 - rte_mcfg_get_single_file_segments; - # added in 20.02 rte_thread_is_intr;