From patchwork Tue Aug 8 17:35:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 129948 X-Patchwork-Delegate: thomas@monjalon.net 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 1A2564300E; Tue, 8 Aug 2023 19:36:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 763D643267; Tue, 8 Aug 2023 19:35:44 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id 4FFD643257 for ; Tue, 8 Aug 2023 19:35:42 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-686f38692b3so5873605b3a.2 for ; Tue, 08 Aug 2023 10:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691516141; x=1692120941; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4tw50+KVabhsw1zKOFsOdNUwwUnExSQ9jAPIC4HKDO0=; b=Cg0lqKEJ4wFIGeC8g4XKUFeAwE4Ph6Lhib5wFFUrO4igheG0Y3WrGMRPElKOyf6aA3 h9v7QXqQqrM7Yuvfl04UMLNJG2bh5ieohP6xjKkO9rslacgR739YhLwGxL5W8uJvVg1+ +/PMqvgolnH0p0trj6vWMmPZe8L9FiWj0YvAqFdYn7XXDLDqVy3IyGGtNSM9NRMIvZXQ p2EwjIrdAQrPYtzifC+3geOmEKXfAkMxPsf4pSrpgxMlNHJr2pCq6ug81+GTKGTwe5kZ 6EHpskrb1FK7V6VDczNijZtN7KV1cytR9RtnOlNQhsZet0d6KhRrd7h0ZlbEgzrNnnib G41g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691516141; x=1692120941; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4tw50+KVabhsw1zKOFsOdNUwwUnExSQ9jAPIC4HKDO0=; b=kDPXa931j+xWORPjCTx1GWJCqq8RCkRVSvA1rZmvPX+7Hs9kARYPpY8d9c9A3fm0za yPbyARS6gGuhCRrz9iKEAL2du7WkmFFsTXluW8f7OM/QNkZ8V9ErcAvxGWaHbJAM3UrM 3pVdzMvbRe6J+R5cI/txv2NGo1HC/GvfM674DF4gG2O07yQtxIen1TNhdZeReEyWObhc sDCWpCqg9D5Xd77Z5TXu9B9ITe+7fmhl/oERPaJjfT839GIpzv1RL7m3Rdh7c8qm1g1q dD7MpsCI3G4IifUvH7ysp2w3FEKCWrtKFXHMtB4KZTFnzMhT3QfkJAbllpOs4mH3OvP+ ObEw== X-Gm-Message-State: AOJu0Yxz/lQrVlo34FdLSvYVwAi8cq9gm2iNTNC9lygBYPNy+g6SMBUv +STn97b2MyVRTEVkX8HSvDK822LsDdMrPhoa/0OoHQ== X-Google-Smtp-Source: AGHT+IF8jHlUdiOrLhsW7mG1+mJdvCqjk8Frxur3Q0y31mSZO9DwbEmClK1SzwRgBdE1QDnwb0y46Q== X-Received: by 2002:a05:6a20:1585:b0:140:6d68:ce07 with SMTP id h5-20020a056a20158500b001406d68ce07mr215912pzj.52.1691516141255; Tue, 08 Aug 2023 10:35:41 -0700 (PDT) Received: from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207]) by smtp.gmail.com with ESMTPSA id m13-20020aa7900d000000b00682562bf479sm8328945pfo.53.2023.08.08.10.35.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 10:35:40 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Subject: [PATCH 03/20] ethdev: mark rte_mtr API's as stable Date: Tue, 8 Aug 2023 10:35:10 -0700 Message-Id: <20230808173527.186042-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230808173527.186042-1-stephen@networkplumber.org> References: <20230808173527.186042-1-stephen@networkplumber.org> MIME-Version: 1.0 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 These haven't changed in a while, time has come to make them not experimental. Signed-off-by: Stephen Hemminger --- lib/ethdev/rte_mtr.h | 25 +------------------------ lib/ethdev/version.map | 34 ++++++++++++++++------------------ 2 files changed, 17 insertions(+), 42 deletions(-) diff --git a/lib/ethdev/rte_mtr.h b/lib/ethdev/rte_mtr.h index 7e6a66b938bf..ed498f36b179 100644 --- a/lib/ethdev/rte_mtr.h +++ b/lib/ethdev/rte_mtr.h @@ -41,10 +41,8 @@ * A) Whether an MTR object is private to a flow or potentially shared by * several flows has to be specified at creation time. * B) Several meter actions can be potentially registered for the same flow. - * - * @warning - * @b EXPERIMENTAL: this API may change without prior notice */ + #include #include #include @@ -570,7 +568,6 @@ struct rte_mtr_error { * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_capabilities_get(uint16_t port_id, struct rte_mtr_capabilities *cap, @@ -594,7 +591,6 @@ rte_mtr_capabilities_get(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_profile_add(uint16_t port_id, uint32_t meter_profile_id, @@ -616,7 +612,6 @@ rte_mtr_meter_profile_add(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_profile_delete(uint16_t port_id, uint32_t meter_profile_id, @@ -636,7 +631,6 @@ rte_mtr_meter_profile_delete(uint16_t port_id, * @return * A valid handle in case of success, NULL otherwise. */ -__rte_experimental struct rte_flow_meter_profile * rte_mtr_meter_profile_get(uint16_t port_id, uint32_t meter_profile_id, @@ -664,7 +658,6 @@ rte_mtr_meter_profile_get(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_policy_validate(uint16_t port_id, struct rte_mtr_meter_policy_params *policy, @@ -691,7 +684,6 @@ rte_mtr_meter_policy_validate(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_policy_add(uint16_t port_id, uint32_t policy_id, @@ -712,7 +704,6 @@ rte_mtr_meter_policy_add(uint16_t port_id, * @return * A valid handle in case of success, NULL otherwise. */ -__rte_experimental struct rte_flow_meter_policy * rte_mtr_meter_policy_get(uint16_t port_id, uint32_t policy_id, @@ -794,7 +785,6 @@ struct rte_mtr_meter_policy_params policy = \ * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_policy_delete(uint16_t port_id, uint32_t policy_id, @@ -823,7 +813,6 @@ rte_mtr_meter_policy_delete(uint16_t port_id, * * @see enum rte_flow_action_type::RTE_FLOW_ACTION_TYPE_METER */ -__rte_experimental int rte_mtr_create(uint16_t port_id, uint32_t mtr_id, @@ -847,7 +836,6 @@ rte_mtr_create(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_destroy(uint16_t port_id, uint32_t mtr_id, @@ -875,7 +863,6 @@ rte_mtr_destroy(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_disable(uint16_t port_id, uint32_t mtr_id, @@ -897,7 +884,6 @@ rte_mtr_meter_disable(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_enable(uint16_t port_id, uint32_t mtr_id, @@ -917,7 +903,6 @@ rte_mtr_meter_enable(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_profile_update(uint16_t port_id, uint32_t mtr_id, @@ -938,7 +923,6 @@ rte_mtr_meter_profile_update(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_policy_update(uint16_t port_id, uint32_t mtr_id, @@ -965,7 +949,6 @@ rte_mtr_meter_policy_update(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_dscp_table_update(uint16_t port_id, uint32_t mtr_id, enum rte_mtr_color_in_protocol proto, @@ -992,7 +975,6 @@ rte_mtr_meter_dscp_table_update(uint16_t port_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_meter_vlan_table_update(uint16_t port_id, uint32_t mtr_id, enum rte_mtr_color_in_protocol proto, @@ -1023,7 +1005,6 @@ rte_mtr_meter_vlan_table_update(uint16_t port_id, uint32_t mtr_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_color_in_protocol_set(uint16_t port_id, uint32_t mtr_id, enum rte_mtr_color_in_protocol proto, uint32_t priority, @@ -1043,7 +1024,6 @@ rte_mtr_color_in_protocol_set(uint16_t port_id, uint32_t mtr_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_color_in_protocol_get(uint16_t port_id, uint32_t mtr_id, uint64_t *proto_mask, @@ -1065,7 +1045,6 @@ rte_mtr_color_in_protocol_get(uint16_t port_id, uint32_t mtr_id, * @return * 0 on success, non-zero error code otherwise. */ -__rte_experimental int rte_mtr_color_in_protocol_priority_get(uint16_t port_id, uint32_t mtr_id, enum rte_mtr_color_in_protocol proto, uint32_t *priority, @@ -1089,7 +1068,6 @@ rte_mtr_color_in_protocol_priority_get(uint16_t port_id, uint32_t mtr_id, * * @see enum rte_mtr_stats_type */ -__rte_experimental int rte_mtr_stats_update(uint16_t port_id, uint32_t mtr_id, @@ -1121,7 +1099,6 @@ rte_mtr_stats_update(uint16_t port_id, * * @see enum rte_mtr_stats_type */ -__rte_experimental int rte_mtr_stats_read(uint16_t port_id, uint32_t mtr_id, diff --git a/lib/ethdev/version.map b/lib/ethdev/version.map index b965d6aa5274..a275cce48164 100644 --- a/lib/ethdev/version.map +++ b/lib/ethdev/version.map @@ -135,26 +135,34 @@ DPDK_24 { rte_flow_pick_transfer_proxy; rte_flow_query; rte_flow_validate; - - local: *; -}; - -EXPERIMENTAL { - global: - - # added in 17.11 rte_mtr_capabilities_get; + rte_mtr_color_in_protocol_get; + rte_mtr_color_in_protocol_priority_get; + rte_mtr_color_in_protocol_set; rte_mtr_create; rte_mtr_destroy; rte_mtr_meter_disable; rte_mtr_meter_dscp_table_update; rte_mtr_meter_enable; + rte_mtr_meter_policy_add; + rte_mtr_meter_policy_delete; + rte_mtr_meter_policy_get; + rte_mtr_meter_policy_update; + rte_mtr_meter_policy_validate; rte_mtr_meter_profile_add; rte_mtr_meter_profile_delete; + rte_mtr_meter_profile_get; rte_mtr_meter_profile_update; + rte_mtr_meter_vlan_table_update; rte_mtr_stats_read; rte_mtr_stats_update; + local: *; +}; + +EXPERIMENTAL { + global: + # added in 18.05 rte_eth_dev_get_module_eeprom; rte_eth_dev_get_module_info; @@ -237,10 +245,6 @@ EXPERIMENTAL { rte_flow_action_handle_destroy; rte_flow_action_handle_update; rte_flow_action_handle_query; - rte_mtr_meter_policy_add; - rte_mtr_meter_policy_delete; - rte_mtr_meter_policy_update; - rte_mtr_meter_policy_validate; # added in 21.11 rte_eth_dev_capability_name; @@ -275,10 +279,6 @@ EXPERIMENTAL { # added in 22.07 rte_eth_rx_avail_thresh_query; rte_eth_rx_avail_thresh_set; - rte_mtr_color_in_protocol_get; - rte_mtr_color_in_protocol_priority_get; - rte_mtr_color_in_protocol_set; - rte_mtr_meter_vlan_table_update; # added in 22.11 rte_eth_buffer_split_get_supported_hdr_ptypes; @@ -290,8 +290,6 @@ EXPERIMENTAL { rte_eth_tx_descriptor_dump; rte_flow_async_action_handle_query; rte_flow_get_q_aged_flows; - rte_mtr_meter_policy_get; - rte_mtr_meter_profile_get; # added in 23.03 rte_eth_dev_count_aggr_ports;