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 A3271A0C4D; Mon, 4 Oct 2021 21:33:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2A07F41258; Mon, 4 Oct 2021 21:33:09 +0200 (CEST) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mails.dpdk.org (Postfix) with ESMTP id 985904124D for ; Mon, 4 Oct 2021 21:33:08 +0200 (CEST) Received: by mail-pg1-f176.google.com with SMTP id s75so6676466pgs.5 for ; Mon, 04 Oct 2021 12:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/g74jwFS5HtgkDH3bnJeVIUlyvBTPhU1nrHeZ17qTAc=; b=0HZ+Zf+3I4Eg2AJGbz0z8fBXYXpjbOj5Q3J4w+Mst3Jmf1d6gXYI3Y6bdkuxRLFZtP SmcAvT8NmxwXQ1q3iUIMH4fzqj42Y9j/mcogPB8bAKBbpkA0flpqCncv1MiOKMkiT8QO qAmIF5D0uf4nyJQQFvbMAdQxye34wom0x4xDAISMR//unauRGyMLIQPzK2COQgv6A0iH 3T7xkQKi0SPTwWGZOOKk4vixWvn+5d2v7n/c0/7wgiOLG6j8iWwq3xRjql/VgPPx4OPb RGwos0XZyMjAu9iy5VSiacrx29TK4z7B/Cikgt/9VP65XAubtJ24OdE4uIbCFr7SCPmP 0syg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/g74jwFS5HtgkDH3bnJeVIUlyvBTPhU1nrHeZ17qTAc=; b=VkP6Hc7/fRFVDPiq4tAHQIQvaJo5SpHzDf+nmgoBEp08MIYZ1mzmXSDcG861I58Zn6 JMlC18jA5LxC3hS4O1izM+SCMUf6XMuTOacRVwIe1EZu4cfqyIiF//kjESvP7Fv0E2Cq uxFFhvj5TmtqhnGwtQyMgV2o9VOdCe1uott/ZLTO0D5kAWIRDG1AjOqz7uPN4DWFzn5i vWXlL5YHOYhNH1ryg98+rsTqiv/P84qPLumSjrWfboH3TnScrIm4+wFfrKIosfmAnI4Y Z+IN5Ni92ShlslfVu6fzn7zz2QlgzDCWmczAYF76wLL2Z/X4370BqqQ+9mXMJdqfO76e M6cg== X-Gm-Message-State: AOAM5331czxF5PEYy3WsmqI0vstYQCH1Po0zApwIe6+zoEjb2fkyyn4/ /LwNXzMRhN8MtkVaybkJqVF9nI1eq9jcRg== X-Google-Smtp-Source: ABdhPJzkHtd4gHxccRL0C4GtjlozFu/M3QJZkKc2bDgMkevU5vbvp6RUYawlRmxZPr/cHMvyej0blw== X-Received: by 2002:a63:1547:: with SMTP id 7mr12364447pgv.122.1633375987385; Mon, 04 Oct 2021 12:33:07 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id x12sm15164139pfa.98.2021.10.04.12.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Oct 2021 12:33:06 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Andrew Rybchenko , Olivier Matz Date: Mon, 4 Oct 2021 12:32:59 -0700 Message-Id: <20211004193302.149338-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211004193302.149338-1-stephen@networkplumber.org> References: <20210825155229.67191-1-stephen@networkplumber.org> <20211004193302.149338-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 2/5] mbuf: make rte_mbuf_dynfield API's 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" These functions to register dynamic fields were added in 20.11 and should be promoted to stable. Signed-off-by: Stephen Hemminger Acked-by: Andrew Rybchenko Acked-by: Olivier Matz --- lib/mbuf/rte_mbuf_dyn.h | 15 --------------- lib/mbuf/version.map | 18 +++++++++--------- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/lib/mbuf/rte_mbuf_dyn.h b/lib/mbuf/rte_mbuf_dyn.h index 13f06d8ed25b..fb03cf1dcf90 100644 --- a/lib/mbuf/rte_mbuf_dyn.h +++ b/lib/mbuf/rte_mbuf_dyn.h @@ -118,7 +118,6 @@ struct rte_mbuf_dynflag { * - ENOMEM: allocation failure. * - ENAMETOOLONG: name does not ends with \0. */ -__rte_experimental int rte_mbuf_dynfield_register(const struct rte_mbuf_dynfield *params); /** @@ -143,7 +142,6 @@ int rte_mbuf_dynfield_register(const struct rte_mbuf_dynfield *params); * - ENOMEM: allocation failure. * - ENAMETOOLONG: name does not ends with \0. */ -__rte_experimental int rte_mbuf_dynfield_register_offset(const struct rte_mbuf_dynfield *params, size_t offset); @@ -160,7 +158,6 @@ int rte_mbuf_dynfield_register_offset(const struct rte_mbuf_dynfield *params, * Possible values for rte_errno: * - ENOENT: no dynamic field matches this name. */ -__rte_experimental int rte_mbuf_dynfield_lookup(const char *name, struct rte_mbuf_dynfield *params); @@ -183,7 +180,6 @@ int rte_mbuf_dynfield_lookup(const char *name, * - ENOMEM: allocation failure. * - ENAMETOOLONG: name is longer than RTE_MBUF_DYN_NAMESIZE - 1. */ -__rte_experimental int rte_mbuf_dynflag_register(const struct rte_mbuf_dynflag *params); /** @@ -208,7 +204,6 @@ int rte_mbuf_dynflag_register(const struct rte_mbuf_dynflag *params); * - ENOMEM: allocation failure. * - ENAMETOOLONG: name is longer than RTE_MBUF_DYN_NAMESIZE - 1. */ -__rte_experimental int rte_mbuf_dynflag_register_bitnum(const struct rte_mbuf_dynflag *params, unsigned int bitnum); @@ -225,7 +220,6 @@ int rte_mbuf_dynflag_register_bitnum(const struct rte_mbuf_dynflag *params, * Possible values for rte_errno: * - ENOENT: no dynamic flag matches this name. */ -__rte_experimental int rte_mbuf_dynflag_lookup(const char *name, struct rte_mbuf_dynflag *params); @@ -240,7 +234,6 @@ int rte_mbuf_dynflag_lookup(const char *name, * @param out * The stream where the status is displayed. */ -__rte_experimental void rte_mbuf_dyn_dump(FILE *out); /* @@ -277,9 +270,6 @@ typedef uint64_t rte_mbuf_timestamp_t; #define RTE_MBUF_DYNFLAG_RX_TIMESTAMP_NAME "rte_dynflag_rx_timestamp" /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Register dynamic mbuf field and flag for Rx timestamp. * * @param field_offset @@ -295,7 +285,6 @@ typedef uint64_t rte_mbuf_timestamp_t; * - ENOENT: no more field or flag available. * - ENOMEM: allocation failure. */ -__rte_experimental int rte_mbuf_dyn_rx_timestamp_register(int *field_offset, uint64_t *rx_flag); /** @@ -314,9 +303,6 @@ int rte_mbuf_dyn_rx_timestamp_register(int *field_offset, uint64_t *rx_flag); #define RTE_MBUF_DYNFLAG_TX_TIMESTAMP_NAME "rte_dynflag_tx_timestamp" /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Register dynamic mbuf field and flag for Tx timestamp. * * @param field_offset @@ -332,7 +318,6 @@ int rte_mbuf_dyn_rx_timestamp_register(int *field_offset, uint64_t *rx_flag); * - ENOENT: no more field or flag available. * - ENOMEM: allocation failure. */ -__rte_experimental int rte_mbuf_dyn_tx_timestamp_register(int *field_offset, uint64_t *tx_flag); #ifdef __cplusplus diff --git a/lib/mbuf/version.map b/lib/mbuf/version.map index 940b04096520..b63e28a8cc4d 100644 --- a/lib/mbuf/version.map +++ b/lib/mbuf/version.map @@ -16,6 +16,15 @@ DPDK_22 { rte_get_tx_ol_flag_list; rte_get_tx_ol_flag_name; rte_mbuf_best_mempool_ops; + rte_mbuf_dyn_dump; + rte_mbuf_dyn_rx_timestamp_register; + rte_mbuf_dyn_tx_timestamp_register; + rte_mbuf_dynfield_lookup; + rte_mbuf_dynfield_register; + rte_mbuf_dynfield_register_offset; + rte_mbuf_dynflag_lookup; + rte_mbuf_dynflag_register; + rte_mbuf_dynflag_register_bitnum; rte_mbuf_platform_mempool_ops; rte_mbuf_sanity_check; rte_mbuf_set_platform_mempool_ops; @@ -37,15 +46,6 @@ EXPERIMENTAL { global: rte_mbuf_check; - rte_mbuf_dynfield_lookup; - rte_mbuf_dynfield_register; - rte_mbuf_dynfield_register_offset; - rte_mbuf_dynflag_lookup; - rte_mbuf_dynflag_register; - rte_mbuf_dynflag_register_bitnum; - rte_mbuf_dyn_dump; - rte_mbuf_dyn_rx_timestamp_register; - rte_mbuf_dyn_tx_timestamp_register; rte_pktmbuf_pool_create_extbuf; }; -- 2.30.2