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 DD9C44301A; Wed, 9 Aug 2023 18:44:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DC3FD43257; Wed, 9 Aug 2023 18:44:38 +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 1B708400D6 for ; Wed, 9 Aug 2023 18:44:37 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1bbc87ded50so548525ad.1 for ; Wed, 09 Aug 2023 09:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599476; x=1692204276; 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=a64H1ZNyHFmjVOUKkYVPnafu9CmoVof+IOxsFtuwS9g=; b=c9p0hiPB6Xj/1MonUNT1WPVTZqbGwGEMPXlIIS4mIxRZ9deu0ppIRbPxQ9RPLcMuR9 ceK9uBT8YaE7bwwoesN23WPtW3XOojru1SYy39H2NWQ+YtM9oUvV4s93DBEV1tw5mZQk SKFjdwctEHIzJ4or9WC4dxexwC5TYpxUbMQrcZu+owFCKK3WEHtxelvFa/G62BkX7r9g QeNNUCBaDzID5OcdRybmvhO8y64MM0UFK+1y3PYPCPZ6gM4EDmdhE5pti4vA/IeWxRsp jdNc5p6Punx8V/XDjGB8t6Sij7Broa653fzMVs0qOvFp81FXsHTCKsO0+6pU1gcEtZCh c69A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599476; x=1692204276; 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=a64H1ZNyHFmjVOUKkYVPnafu9CmoVof+IOxsFtuwS9g=; b=CytYsRhKBvCxJR8TTmAQrxn3o7cP/CSzX/9RIAx1joaTQID4fOcZ9X3b793ue1GGAJ 4zDr1YVfLO+52Hsuj0am+jM15b+uxUHOtfdFhyHejX6+Yh0JwlaByRjklLwdrANEvCSk nNhICOTpdyWxcSaJt/wee1qCprUKbU+dR8HAXg4hVQBwmQB45Sb2b0IBeIZKsBma1REJ k5KXcqgdGXwjdcAYd7vUtLzw9za0cfnyLWrbogkz5s1vhElFYZLE2tdg4n5nQHl7U09j vFUenTF+2WAn+IIpY3X6xXQcTdWGAzy6CP+eS/1XGAizPNcP14zIaDSyvXdjcuOUI5i8 oVDg== X-Gm-Message-State: AOJu0Yw+In7Of5hecNSptNgeyrrjVO2NwzYqZZMKOaSqh2wTJ0JnRSjs AJd+ikYxWylhlYDf+d+wVd0CttqGbeFo+nrO+pYfRw== X-Google-Smtp-Source: AGHT+IHVq2NMzFXEe8NMS9B0wX3ZgEOE2UjiXTTkG8yoTIFFskJSUmfQIvFHbyKvOxtulqC0k/iz5g== X-Received: by 2002:a17:902:d508:b0:1b8:9044:b8ae with SMTP id b8-20020a170902d50800b001b89044b8aemr3487556plg.11.1691599475874; Wed, 09 Aug 2023 09:44:35 -0700 (PDT) Received: from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207]) by smtp.gmail.com with ESMTPSA id i8-20020a17090332c800b001b8b0ac2258sm11426394plr.174.2023.08.09.09.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:34 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Cristian Dumitrescu , Joyce Kong Subject: [PATCH 01/15] eal: make bitops a stable API Date: Wed, 9 Aug 2023 09:42:53 -0700 Message-Id: <20230809164312.308093-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230809164312.308093-1-stephen@networkplumber.org> References: <20230809164312.308093-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 were added in 20.05 release. Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_bitmap.h | 8 -------- lib/eal/include/rte_bitops.h | 40 ------------------------------------ 2 files changed, 48 deletions(-) diff --git a/lib/eal/include/rte_bitmap.h b/lib/eal/include/rte_bitmap.h index 46a822768d50..ec819595624c 100644 --- a/lib/eal/include/rte_bitmap.h +++ b/lib/eal/include/rte_bitmap.h @@ -203,9 +203,6 @@ rte_bitmap_init(uint32_t n_bits, uint8_t *mem, uint32_t mem_size) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Bitmap clear slab overhead bits. * * @param slabs @@ -215,7 +212,6 @@ rte_bitmap_init(uint32_t n_bits, uint8_t *mem, uint32_t mem_size) * @param pos * The start bit position in the slabs to be cleared. */ -__rte_experimental static inline void __rte_bitmap_clear_slab_overhead_bits(uint64_t *slabs, uint32_t slab_size, uint32_t pos) @@ -235,9 +231,6 @@ __rte_bitmap_clear_slab_overhead_bits(uint64_t *slabs, uint32_t slab_size, } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Bitmap initialization with all bits set * * @param n_bits @@ -249,7 +242,6 @@ __rte_bitmap_clear_slab_overhead_bits(uint64_t *slabs, uint32_t slab_size, * @return * Handle to bitmap instance. */ -__rte_experimental static inline struct rte_bitmap * rte_bitmap_init_with_all_set(uint32_t n_bits, uint8_t *mem, uint32_t mem_size) { diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h index f50dbe43880c..41b1878841fc 100644 --- a/lib/eal/include/rte_bitops.h +++ b/lib/eal/include/rte_bitops.h @@ -40,9 +40,6 @@ extern "C" { /*------------------------ 32-bit relaxed operations ------------------------*/ /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Get the target bit from a 32-bit value without memory ordering. * * @param nr @@ -52,7 +49,6 @@ extern "C" { * @return * The target bit. */ -__rte_experimental static inline uint32_t rte_bit_relaxed_get32(unsigned int nr, volatile uint32_t *addr) { @@ -63,9 +59,6 @@ rte_bit_relaxed_get32(unsigned int nr, volatile uint32_t *addr) } /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Set the target bit in a 32-bit value to 1 without memory ordering. * * @param nr @@ -73,7 +66,6 @@ rte_bit_relaxed_get32(unsigned int nr, volatile uint32_t *addr) * @param addr * The address holding the bit. */ -__rte_experimental static inline void rte_bit_relaxed_set32(unsigned int nr, volatile uint32_t *addr) { @@ -84,9 +76,6 @@ rte_bit_relaxed_set32(unsigned int nr, volatile uint32_t *addr) } /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Clear the target bit in a 32-bit value to 0 without memory ordering. * * @param nr @@ -94,7 +83,6 @@ rte_bit_relaxed_set32(unsigned int nr, volatile uint32_t *addr) * @param addr * The address holding the bit. */ -__rte_experimental static inline void rte_bit_relaxed_clear32(unsigned int nr, volatile uint32_t *addr) { @@ -105,9 +93,6 @@ rte_bit_relaxed_clear32(unsigned int nr, volatile uint32_t *addr) } /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Return the original bit from a 32-bit value, then set it to 1 without * memory ordering. * @@ -118,7 +103,6 @@ rte_bit_relaxed_clear32(unsigned int nr, volatile uint32_t *addr) * @return * The original bit. */ -__rte_experimental static inline uint32_t rte_bit_relaxed_test_and_set32(unsigned int nr, volatile uint32_t *addr) { @@ -131,9 +115,6 @@ rte_bit_relaxed_test_and_set32(unsigned int nr, volatile uint32_t *addr) } /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Return the original bit from a 32-bit value, then clear it to 0 without * memory ordering. * @@ -144,7 +125,6 @@ rte_bit_relaxed_test_and_set32(unsigned int nr, volatile uint32_t *addr) * @return * The original bit. */ -__rte_experimental static inline uint32_t rte_bit_relaxed_test_and_clear32(unsigned int nr, volatile uint32_t *addr) { @@ -159,9 +139,6 @@ rte_bit_relaxed_test_and_clear32(unsigned int nr, volatile uint32_t *addr) /*------------------------ 64-bit relaxed operations ------------------------*/ /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Get the target bit from a 64-bit value without memory ordering. * * @param nr @@ -171,7 +148,6 @@ rte_bit_relaxed_test_and_clear32(unsigned int nr, volatile uint32_t *addr) * @return * The target bit. */ -__rte_experimental static inline uint64_t rte_bit_relaxed_get64(unsigned int nr, volatile uint64_t *addr) { @@ -182,9 +158,6 @@ rte_bit_relaxed_get64(unsigned int nr, volatile uint64_t *addr) } /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Set the target bit in a 64-bit value to 1 without memory ordering. * * @param nr @@ -192,7 +165,6 @@ rte_bit_relaxed_get64(unsigned int nr, volatile uint64_t *addr) * @param addr * The address holding the bit. */ -__rte_experimental static inline void rte_bit_relaxed_set64(unsigned int nr, volatile uint64_t *addr) { @@ -203,9 +175,6 @@ rte_bit_relaxed_set64(unsigned int nr, volatile uint64_t *addr) } /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Clear the target bit in a 64-bit value to 0 without memory ordering. * * @param nr @@ -213,7 +182,6 @@ rte_bit_relaxed_set64(unsigned int nr, volatile uint64_t *addr) * @param addr * The address holding the bit. */ -__rte_experimental static inline void rte_bit_relaxed_clear64(unsigned int nr, volatile uint64_t *addr) { @@ -224,9 +192,6 @@ rte_bit_relaxed_clear64(unsigned int nr, volatile uint64_t *addr) } /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Return the original bit from a 64-bit value, then set it to 1 without * memory ordering. * @@ -237,7 +202,6 @@ rte_bit_relaxed_clear64(unsigned int nr, volatile uint64_t *addr) * @return * The original bit. */ -__rte_experimental static inline uint64_t rte_bit_relaxed_test_and_set64(unsigned int nr, volatile uint64_t *addr) { @@ -250,9 +214,6 @@ rte_bit_relaxed_test_and_set64(unsigned int nr, volatile uint64_t *addr) } /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Return the original bit from a 64-bit value, then clear it to 0 without * memory ordering. * @@ -263,7 +224,6 @@ rte_bit_relaxed_test_and_set64(unsigned int nr, volatile uint64_t *addr) * @return * The original bit. */ -__rte_experimental static inline uint64_t rte_bit_relaxed_test_and_clear64(unsigned int nr, volatile uint64_t *addr) { -- 2.39.2