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 3B174A0C55; Tue, 31 Aug 2021 21:35:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB2A9410FD; Tue, 31 Aug 2021 21:35:16 +0200 (CEST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 7A375410E3 for ; Tue, 31 Aug 2021 21:35:13 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id q21so81067plq.3 for ; Tue, 31 Aug 2021 12:35:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hlwjkGnSY+RpnuaYcfEo3BrbfIQ0JeKXz3OC/1gnqTk=; b=gWwZRca4PIrChlTiA4ppcqobdi3EVTVRdA3+TiWtf8jgYioMryGjOizPhu8tP6WxJ9 0/eW1fhMxvEhNL9yaOOPHeDEstzZC7YapVslQbItKr5C9tYhWxljJEpx9BiFYIiIgCtY RBd859mO8Lfq04Z5NlOkxyxUrLbawb8AWZ2NphOMWZ3xzNSKCaM/XO60pzJErecHsi9s GrxOJRmQalhKAvgmCCYaNlIfMR1YByUsAc1orM0p97MtTfVKQXG0zVsZ83IzaClVUCuF Sn2YdHuRM/Rtv+6e2tZFrNGqjtpdQxQESmn6xl3rQdBFBDejXzEX+KCf6Ta2uElR0yem VgzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hlwjkGnSY+RpnuaYcfEo3BrbfIQ0JeKXz3OC/1gnqTk=; b=Ih4N3RVY5gqHZuX45M72D59cnfnTp1QkbRlDj7W2P4luRvyY65zjCvrqdqFugaP9+e eGmTY2aAez4frt3mYEcjvukrAXku+K8+n6EIjq/k1RNMVZUngjXFD6j+T+vmx963iHQe 9mEMZy5eLv1gBc3nfzK/uCZdaBgnSoaCUtUR7TWWUPZkMYYBmmamBE6rRdDBSRLwrMTs 5ZQ3Cxy7O4JR6g1pJ7+oOYt6pE/P9j2FI9fNpeBNDws4GxstHe2xIgiB7XdmmJfwQ/gI obmDNe1lYSkC2mNQofkQEnrcdwPYIimktmiw9vmHTeOs5qX9kg2BTBTcAZedIJp7bzEY usig== X-Gm-Message-State: AOAM531zSFpb4cfoURnXoco+wcHr8S2kXs/ueAimKORw8JC3BvNBMhcV EkddKKF9dvYVgkBMxxwmnt8uMWaBhfwpJA== X-Google-Smtp-Source: ABdhPJwUu9LkiXZ82rF2WgV+hOYvbsod5GWPrNw4nZqtv0zC1oC6XIdsKrW0lMCuACdctJEMiiDvzQ== X-Received: by 2002:a17:902:8d84:b0:12d:da0a:6970 with SMTP id v4-20020a1709028d8400b0012dda0a6970mr6124652plo.54.1630438512309; Tue, 31 Aug 2021 12:35:12 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id g37sm20501272pgl.94.2021.08.31.12.35.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Aug 2021 12:35:11 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 31 Aug 2021 12:35:05 -0700 Message-Id: <20210831193507.43426-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210831193507.43426-1-stephen@networkplumber.org> References: <20210825220958.91326-1-stephen@networkplumber.org> <20210831193507.43426-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 2/4] 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 --- 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