From patchwork Wed Aug 9 16:42:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130050 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 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 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) { From patchwork Wed Aug 9 16:42:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130051 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 7B87E4301A; Wed, 9 Aug 2023 18:44:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ECD1E4325B; Wed, 9 Aug 2023 18:44:40 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 470DD410FD for ; Wed, 9 Aug 2023 18:44:38 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1bc65360648so626775ad.1 for ; Wed, 09 Aug 2023 09:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599477; x=1692204277; 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=XuhTf2SeWn+kx1a7GrV6KBzQ7ULhAx5Mjc4lhEnp5o8=; b=kPPLo0iKk1kAEP9ZmHeWin/YBpyjqY/bfx/rW8e8K8lqqyDZ3t/gSVpNl9sImbKIgS PsjUSLB+2WbYvfNvi+NchFuSJ9Oh0YbFd8m4BTpn7Aa3TcUsHTYfgpc6xMCcs9TgN3Bc SBpsfr5Hx3VbcZpXmSmjTn13q0lgpV90+kxZ76f5Ax101P/+R6AOIa9OwnpsHl5yNsHh INMDyrgmEmo9QmmOyjnS1NKd7rhMPixKfCPz10o+CMsxTGWSvhJ5gN5ba9QCXyEbXghv 9iWBcV+tGmue2GLPYGjk0Y5+D0VF1D20PlK3UyAgNji8bcbU/RiP6QPLwcLDwS8X62GI mNDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599477; x=1692204277; 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=XuhTf2SeWn+kx1a7GrV6KBzQ7ULhAx5Mjc4lhEnp5o8=; b=ShmW8XoXU4Bqc+Nf0q8Owo46xO0j4jVVn9NWLC2HET2zIwyRgY/mZDuyOs/KIqIM8j sxAgcQ5XtNFV6h0nFQweScV5WJ4lFW574hlh+hUV+zVL59mSN5rbV5nd8A67dXw71wCq Zbw8IDqc1aztto6KZchIsINPfXERIggq0FdWcVJuLwAaDF8pcJ6dZiCGvs6+578f1cpb RP2sY5nNZtMfbfTdkkNRdWLInrc7rGBL/BLtjVcKE9nvi9twWhqLPl+ebdYGHQcjZwyV 6O3MYN3sdgcgWUZi+hGUL0Sn/XWobAUyt9RNszisaRkrK1xKFXbBaxGP+Nla+ie+kWNt Kvfw== X-Gm-Message-State: AOJu0YzcjWdA3DrOeEbbaSMsKucZmgm8dF0U0Oc+pXXqka89LjdChWXO D3JjJXdAeRAWwUIsZsxRZtQ9Ek76TJUmRXN6jH5VBw== X-Google-Smtp-Source: AGHT+IHS+ozwm33E9McEOYVA+pyBc0GGBX20V9ATXBl41ELQD3yXkOumhTIFif6YtIzS++TESX34TQ== X-Received: by 2002:a17:903:2450:b0:1b8:971c:b7b7 with SMTP id l16-20020a170903245000b001b8971cb7b7mr4402044pls.56.1691599477140; Wed, 09 Aug 2023 09:44:37 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:36 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 02/15] eal: mark rte_dev API's as stable Date: Wed, 9 Aug 2023 09:42:54 -0700 Message-Id: <20230809164312.308093-3-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 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 have been around since 2020. Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_dev.h | 32 -------------------------------- lib/eal/version.map | 28 +++++++++++----------------- 2 files changed, 11 insertions(+), 49 deletions(-) diff --git a/lib/eal/include/rte_dev.h b/lib/eal/include/rte_dev.h index 8568535ac04b..86ef2f54235d 100644 --- a/lib/eal/include/rte_dev.h +++ b/lib/eal/include/rte_dev.h @@ -341,7 +341,6 @@ typedef void *(*rte_dev_iterate_t)(const void *start, * 0 on successful initialization. * <0 on error. */ -__rte_experimental int rte_dev_iterator_init(struct rte_dev_iterator *it, const char *str); @@ -361,7 +360,6 @@ rte_dev_iterator_init(struct rte_dev_iterator *it, const char *str); * NULL if an error occurred (rte_errno is set). * NULL if no device could be found (rte_errno is not set). */ -__rte_experimental struct rte_device * rte_dev_iterator_next(struct rte_dev_iterator *it); @@ -372,9 +370,6 @@ rte_dev_iterator_next(struct rte_dev_iterator *it); dev = rte_dev_iterator_next(it)) /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * It registers the callback for the specific device. * Multiple callbacks can be registered at the same time. * @@ -390,16 +385,12 @@ rte_dev_iterator_next(struct rte_dev_iterator *it); * - On success, zero. * - On failure, a negative value. */ -__rte_experimental int rte_dev_event_callback_register(const char *device_name, rte_dev_event_cb_fn cb_fn, void *cb_arg); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * It unregisters the callback according to the specified device. * * @param device_name @@ -415,16 +406,12 @@ rte_dev_event_callback_register(const char *device_name, * - On success, return the number of callback entities removed. * - On failure, a negative value. */ -__rte_experimental int rte_dev_event_callback_unregister(const char *device_name, rte_dev_event_cb_fn cb_fn, void *cb_arg); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Executes all the user application registered callbacks for * the specific device. * @@ -433,64 +420,47 @@ rte_dev_event_callback_unregister(const char *device_name, * @param event * the device event type. */ -__rte_experimental void rte_dev_event_callback_process(const char *device_name, enum rte_dev_event_type event); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Start the device event monitoring. * * @return * - On success, zero. * - On failure, a negative value. */ -__rte_experimental int rte_dev_event_monitor_start(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Stop the device event monitoring. * * @return * - On success, zero. * - On failure, a negative value. */ -__rte_experimental int rte_dev_event_monitor_stop(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Enable hotplug handling for devices. * * @return * - On success, zero. * - On failure, a negative value. */ -__rte_experimental int rte_dev_hotplug_handle_enable(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Disable hotplug handling for devices. * * @return * - On success, zero. * - On failure, a negative value. */ -__rte_experimental int rte_dev_hotplug_handle_disable(void); @@ -514,7 +484,6 @@ rte_dev_hotplug_handle_disable(void); * 0 if mapping was successful. * Negative value and rte_errno is set otherwise. */ -__rte_experimental int rte_dev_dma_map(struct rte_device *dev, void *addr, uint64_t iova, size_t len); @@ -538,7 +507,6 @@ rte_dev_dma_map(struct rte_device *dev, void *addr, uint64_t iova, size_t len); * 0 if un-mapping was successful. * Negative value and rte_errno is set otherwise. */ -__rte_experimental int rte_dev_dma_unmap(struct rte_device *dev, void *addr, uint64_t iova, size_t len); diff --git a/lib/eal/version.map b/lib/eal/version.map index bdb98cf47993..3df6c4163276 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -29,8 +29,19 @@ DPDK_24 { rte_dev_bus; rte_dev_bus_info; rte_dev_devargs; + rte_dev_dma_map; + rte_dev_dma_unmap; rte_dev_driver; + rte_dev_event_callback_process; + rte_dev_event_callback_register; + rte_dev_event_callback_unregister; + rte_dev_event_monitor_start; + rte_dev_event_monitor_stop; + rte_dev_hotplug_handle_disable; + rte_dev_hotplug_handle_enable; rte_dev_is_probed; + rte_dev_iterator_init; + rte_dev_iterator_next; rte_dev_name; rte_dev_numa_node; rte_dev_probe; @@ -309,28 +320,11 @@ DPDK_24 { EXPERIMENTAL { global: - # added in 18.05 - rte_dev_event_callback_register; - rte_dev_event_callback_unregister; - rte_dev_event_monitor_start; - rte_dev_event_monitor_stop; - # added in 18.08 rte_class_find; rte_class_find_by_name; rte_class_register; rte_class_unregister; - rte_dev_iterator_init; - rte_dev_iterator_next; - - # added in 18.11 - rte_dev_event_callback_process; - rte_dev_hotplug_handle_disable; - rte_dev_hotplug_handle_enable; - - # added in 19.05 - rte_dev_dma_map; - rte_dev_dma_unmap; # added in 20.05 __rte_eal_trace_generic_double; From patchwork Wed Aug 9 16:42:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130052 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 487F44301A; Wed, 9 Aug 2023 18:45:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE26742B8B; Wed, 9 Aug 2023 18:44:41 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id D4F474325B for ; Wed, 9 Aug 2023 18:44:39 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1bb9e6c2a90so614245ad.1 for ; Wed, 09 Aug 2023 09:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599479; x=1692204279; 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=pnscN5ZRoaT3dSM5lSa1/TUo8iWOzrDsd7aBbFd8/pE=; b=2+69GOKleY6D0reETTOjsLR1Qe7gZMmNpuHE9/2KqMlAasSc7XtEpSRAPkESSrtEoE EuAV713GrHbhPruYZZ8GklTQPR6qD+ytux8hz46N1WfkiG0+VBP19O4NZjKdwwWykyHu T7yOMJMuNy2meuGunGRK4irXR7cqg7Ngx6JCzGuEdq2DuOR3W2Ns8O1Ffgju8OcvkmVO cZ/rv9ACDTG6c0lArl97h4kDQevkqGaUoahrhWQ6dgebh5voZkTt27/3PxRtlROe1RbD R4PvcmsuvCZXZniH7sZ7vffW3UUAi0LH5trgcrrjY6iFehumcdS30oe8nPXIVkRubFOP A5MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599479; x=1692204279; 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=pnscN5ZRoaT3dSM5lSa1/TUo8iWOzrDsd7aBbFd8/pE=; b=Hh8CWCcUwaCLXdRFW1Sbt026UCWT4/y31Sog17CVwwtR2YiEMgOpkJr3L1rrEg4AOD PDNn1ws92LU0RrWzWbozlgzgZY38jSoizzqkpo7/Jvi37FEHFarTarirb0cCylsm4jV2 QNkU9QRpcUYri/ZoeNhS4+u+divFmgZAIwn3NQyoK3dWTN4djeEQibpvr+Ynii0ZtuQs K1gNzJFeVYMbIe0bO79uPbJcCPxCWk3kN+oTMRF4iyQrFbv1C/Wj0/jMxoCoj9gpH2JY R4iTRZ3sAF/zMkyyAV5CL0MdIpoUlY1DmTd0P/Ii2NiHhMOoGEfR7HiC9UOebjPDIYyy NXkg== X-Gm-Message-State: AOJu0YwMyv8/X5ZPM3DwU1u58xKBHG+FoE9zkCKk+giR+4XEDLeK7Y6g Fv3V/pU9t5x+s0aDn5M9/J3g1xThqn4LeRH0Vg4qBA== X-Google-Smtp-Source: AGHT+IEvfuN8h60Kk1lY0RoxmIYQh9RWS0dRlDnE4o09Lp5+MuIF/7/j7p+BBY4nDkmx+wLF4vXVYg== X-Received: by 2002:a17:902:f7d6:b0:1b8:a88c:4dc6 with SMTP id h22-20020a170902f7d600b001b8a88c4dc6mr3259459plw.45.1691599478701; Wed, 09 Aug 2023 09:44:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:38 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 03/15] eal: make rte_class API's stable Date: Wed, 9 Aug 2023 09:42:55 -0700 Message-Id: <20230809164312.308093-4-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 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 API's have been around for a while. Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_class.h | 4 ---- lib/eal/version.map | 10 ++++------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/eal/include/rte_class.h b/lib/eal/include/rte_class.h index 47b1764e7bf9..487d1abcde72 100644 --- a/lib/eal/include/rte_class.h +++ b/lib/eal/include/rte_class.h @@ -76,7 +76,6 @@ typedef int (*rte_class_cmp_t)(const struct rte_class *cls, const void *data); * @return * A pointer to a rte_class structure or NULL in case no class matches */ -__rte_experimental struct rte_class * rte_class_find(const struct rte_class *start, rte_class_cmp_t cmp, const void *data); @@ -84,7 +83,6 @@ rte_class_find(const struct rte_class *start, rte_class_cmp_t cmp, /** * Find the registered class for a given name. */ -__rte_experimental struct rte_class * rte_class_find_by_name(const char *name); @@ -95,7 +93,6 @@ rte_class_find_by_name(const char *name); * A pointer to a rte_class structure describing the class * to be registered. */ -__rte_experimental void rte_class_register(struct rte_class *cls); /** @@ -105,7 +102,6 @@ void rte_class_register(struct rte_class *cls); * A pointer to a rte_class structure describing the class * to be unregistered. */ -__rte_experimental void rte_class_unregister(struct rte_class *cls); /** diff --git a/lib/eal/version.map b/lib/eal/version.map index 3df6c4163276..2f00f6a97989 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -17,6 +17,10 @@ DPDK_24 { rte_bus_scan; rte_calloc; rte_calloc_socket; + rte_class_find; + rte_class_find_by_name; + rte_class_register; + rte_class_unregister; rte_cpu_get_flag_enabled; rte_cpu_get_flag_name; rte_cpu_is_supported; # WINDOWS_NO_EXPORT @@ -320,12 +324,6 @@ DPDK_24 { EXPERIMENTAL { global: - # added in 18.08 - rte_class_find; - rte_class_find_by_name; - rte_class_register; - rte_class_unregister; - # added in 20.05 __rte_eal_trace_generic_double; __rte_eal_trace_generic_float; From patchwork Wed Aug 9 16:42:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130053 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 2EA874301A; Wed, 9 Aug 2023 18:45:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B8A843263; Wed, 9 Aug 2023 18:44:44 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 5B5464325D for ; Wed, 9 Aug 2023 18:44:41 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1bc7e65ea44so8518595ad.1 for ; Wed, 09 Aug 2023 09:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599480; x=1692204280; 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=GB3iTa8ibSpPF0QVQ13/P4z6odRMR+64Swk5wqQbQ5I=; b=uH/5BDuzoCzUCIPLydhTadAkQNwETyzUo/YCO3JMsQYVW+5+2WWUjwWwAb3Fi4m5iD mSuGEp5cdhNT8Eu+RKyQBE4ZawrQw3zUigKuOKvWqY3JlvKZotRrgh97t4yUY+I9kEnN W2g4tBt1/VibyAwTj4aU9EflGoY9+l/gI8PumQQ2UAniW2apXWViH9QNjhpm5BARQ9nj Ow9+QWbjBhz+jcWGZBbEclvlGSlkbWdH30r+uIjUIblby6HXXAbN0zUtbz8hhHxTK3nw NXeWppSkoAvPZnN3kljBjN971KLA0QNazwVcwax/XVuBONfUhWqRCWpdQzTdM6AtiYWf SNTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599480; x=1692204280; 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=GB3iTa8ibSpPF0QVQ13/P4z6odRMR+64Swk5wqQbQ5I=; b=WcpAejTxnG7fs82pK5nLgvffjvIx/+h6J1FeNrqRqSglDmnOy2chu6H3nqc8nY1e1I S5UsiPBAF0ytxIYsDRs4fEjYw3Xwuivc8zDdLWBSCUmLrxZLMkvAdzaPZ6LvRwChotPr kMBzsnLgVNZhGcxaUkAcc5SxnZ6d6KiGE3Q/wVi7AhzeOb6iBHB80moQZ6zU+MH/pms2 Ke25fpqB+0XnqiRxx4Gs/XcAIM3NsvVSKeGTuHrCzCvGp+Pa9IIGWq0gAXbwko5k6Y/T GlKWEPAenAmWrWSxd+bYdRtvDaYNFaVD7wfpS9r/KZv+E1tgCR2pFqhGo6CuwlIDFSTA ghDQ== X-Gm-Message-State: AOJu0YzBLziy1zkA/0CQ6lNwPsC//SubUa6F0zOoERVK9Zc8opbMsjdy mlugvJrTHDuCFWRZ/zlyidfhJQ8PiXc+m2QyqyXN8Q== X-Google-Smtp-Source: AGHT+IEAQNofZv9Ge7ZzzXy2A5PBulqFcL9OX01bzUyr/gprfrNSqvzNZ371FKcWjmmVAPkIlJ3lsQ== X-Received: by 2002:a17:903:2341:b0:1b8:6984:f5e5 with SMTP id c1-20020a170903234100b001b86984f5e5mr116610plh.12.1691599480279; Wed, 09 Aug 2023 09:44:40 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:39 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 04/15] eal: make rte_version_XXX API's stable Date: Wed, 9 Aug 2023 09:42:56 -0700 Message-Id: <20230809164312.308093-5-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 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 The subparts of rte_version were added in 2020 and can now be marked stable. Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson --- lib/eal/include/rte_version.h | 6 ------ lib/eal/version.map | 12 ++++++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/eal/include/rte_version.h b/lib/eal/include/rte_version.h index 414b6167f286..121d75bdbe28 100644 --- a/lib/eal/include/rte_version.h +++ b/lib/eal/include/rte_version.h @@ -35,37 +35,31 @@ extern "C" { /** * Function to return DPDK version prefix string */ -__rte_experimental const char *rte_version_prefix(void); /** * Function to return DPDK version year */ -__rte_experimental unsigned int rte_version_year(void); /** * Function to return DPDK version month */ -__rte_experimental unsigned int rte_version_month(void); /** * Function to return DPDK minor version number */ -__rte_experimental unsigned int rte_version_minor(void); /** * Function to return DPDK version suffix for any release candidates */ -__rte_experimental const char *rte_version_suffix(void); /** * Function to return DPDK version release candidate value */ -__rte_experimental unsigned int rte_version_release(void); /** diff --git a/lib/eal/version.map b/lib/eal/version.map index 2f00f6a97989..e6d2fda95770 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -299,6 +299,12 @@ DPDK_24 { rte_uuid_parse; rte_uuid_unparse; rte_version; + rte_version_minor; + rte_version_month; + rte_version_prefix; + rte_version_release; + rte_version_suffix; + rte_version_year; rte_vfio_clear_group; # WINDOWS_NO_EXPORT rte_vfio_container_create; # WINDOWS_NO_EXPORT rte_vfio_container_destroy; # WINDOWS_NO_EXPORT @@ -381,12 +387,6 @@ EXPERIMENTAL { rte_thread_key_delete; rte_thread_value_get; rte_thread_value_set; - rte_version_minor; - rte_version_month; - rte_version_prefix; - rte_version_release; - rte_version_suffix; - rte_version_year; # added in 21.08 rte_power_monitor_multi; # WINDOWS_NO_EXPORT From patchwork Wed Aug 9 16:42:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130054 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 F319B4301A; Wed, 9 Aug 2023 18:45:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27F5743268; Wed, 9 Aug 2023 18:44:45 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 6256243261 for ; Wed, 9 Aug 2023 18:44:42 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-686b879f605so4978735b3a.1 for ; Wed, 09 Aug 2023 09:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599481; x=1692204281; 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=D1lVikRwCExisTu/usup7EPAImADAc+wasUQ7E+2GN0=; b=Q7pf6HWa2tvNzG/T+kOUkIoG4yOzl0/c4LrZJ6/BBvF7OzqWd1JU0uBptd7Dow0s1C QQr4JDC8+amzLyjzD/WSsogEQwRNbIvcVsanWg8ES1/Hy/mm17/F7SUeLKIShIf6V1Nn MBRWM3Geo5WuW5LjROmflnTO75+eRdPmjvenMabLlkXBp7NIKlBImo3j7+zidnYKT47H ID7joZ37EB5VYkS/fDkagc9MOejnDCrt8/gbtPEWwsDnPAdtySm4RXrXVLUXFP86fEDr HIEk97ejePuCjQBU02BeeDhBHS5o4YWxg1+HDUTO5zx56FK79MhF9lzjPO9L5Dd5Fl9N E4pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599481; x=1692204281; 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=D1lVikRwCExisTu/usup7EPAImADAc+wasUQ7E+2GN0=; b=Eh3VNpOJRbnrmkVv1jpXEsnjDR6MJHnE/BHBlIPdpwe/QX8QT4ySYvq98DXboA+gC4 ImHbTxiR3s27/pMLrpigFabO4XS4NH6WLDQuD08I0JDBWUDH1pTiG13h4C2U2F/lURhs eYjFye79wWFcKce8OlETifmkZv9/SlGGvwH7JSojeGDw9+AE1Lloaand3+csSR+8JUlH /RDdiTs/UcQR2CoQFUPvtBQPtbkhYIO8LhmQmI1y4xWI9IphGmHH8Pvs6uO6Unhs/vUg ropc94QTPf8/6pqRbvfLAnqU10M0keyzeEYt9XcIZ+39ig35Bwnx+vEPEqNN2eWumXQv An2Q== X-Gm-Message-State: AOJu0YwFyWiDEyfW9yY6rWdk3DSboClEpJia8zB/uYxzKRTK/WSNbqSI h+Ju7zi1iabRr01FKZlYofcXL6hHH4zqGSoHRg5FYw== X-Google-Smtp-Source: AGHT+IF9YJ5SQRU5VLPDbScksmNJlnKFtevOdun4Gr7TDQFlnDh4BwbjSH7eAPZCBFZQmzYB3gyY9g== X-Received: by 2002:a05:6a20:8402:b0:140:c838:2b2e with SMTP id c2-20020a056a20840200b00140c8382b2emr3445970pzd.22.1691599481392; Wed, 09 Aug 2023 09:44:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:40 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , =?utf-8?q?Mattias_R?= =?utf-8?q?=C3=B6nnblom?= Subject: [PATCH 05/15] eal: make rte_drand a stable API Date: Wed, 9 Aug 2023 09:42:57 -0700 Message-Id: <20230809164312.308093-6-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 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 This API was added in 2020. Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_random.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/eal/include/rte_random.h b/lib/eal/include/rte_random.h index 2edf5d210b45..da8139cb10ad 100644 --- a/lib/eal/include/rte_random.h +++ b/lib/eal/include/rte_random.h @@ -68,9 +68,6 @@ uint64_t rte_rand_max(uint64_t upper_bound); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Generates a pseudo-random floating point number. * * This function returns a non-negative double-precision floating random @@ -84,7 +81,6 @@ rte_rand_max(uint64_t upper_bound); * @return * A pseudo-random value between 0 and 1.0. */ -__rte_experimental double rte_drand(void); #ifdef __cplusplus From patchwork Wed Aug 9 16:42:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130055 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 54BA04301A; Wed, 9 Aug 2023 18:45:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC32043272; Wed, 9 Aug 2023 18:44:46 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 80E01410FD for ; Wed, 9 Aug 2023 18:44:43 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1bc73a2b0easo740565ad.0 for ; Wed, 09 Aug 2023 09:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599482; x=1692204282; 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=FKhn92aBTL2C0YkawZAZ2NSQfxc8JlhnmDLAvPrr564=; b=HypRXnM4eZanJcL6vJ2TL9zxLRLsvmASFENMWm7VQ1Wfl1dIV4SybG+G1ojMBwvam9 hCy/mJ12RDbnMdx232pCxrCGqoKxQ5JB0Mv/fZm5Dx8Gv/cHxKIUp5Nph1J5EUfQakWd r27FlQo4CzKZtj05QTLRuVPi6KJE2MT9IDJwM4K/8g9CNDBjpicf4rq89BL9TvbCMLpj PovJKXS6JecEEeWnqN6afepHS8lhkn2b+A/8hcNqrVg/gYqRgQtCMNikr2STMZNsUqsJ QML0SRr7gH7OJ9WyRv556YhOo8KNLRuROQuZceVymOqUDmO/heI79vd6BqsO2KuaIpOT Xmyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599482; x=1692204282; 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=FKhn92aBTL2C0YkawZAZ2NSQfxc8JlhnmDLAvPrr564=; b=Sy1ffgiT/5htkQujuaYsvQN4/dk91QKoPFs1y96VITeDsRc2F+8msO+vCN+DkQwXcn TgVIaPj80kbMWSYxKiP1PhEPxMVWoFv3DV9n+MzCqmaANrkL9zYEMd1pyQUhIeA1pCeh m1UI2ImP5JfS9UsEcvecfhzQskuc1+o9+TrOoHJZ5x/xqHaH+ZyH8OJR21JJUkVha5Ji LwnDlwg9VQ9+tpjenyEaPGmQN1w5pT/lBINo2C+dT5Hrznb1bEhIc+qvrHCRdtErjh/n X2SfbHQF2s3YmViOw3tjcgXCIVxgqPZtRd3Q73gBBM+IwOC84HaJZmTKHEmPVgNwhACN 64ug== X-Gm-Message-State: AOJu0YzhnLt3oHnALTLKCZ4MzY17Lg9ZqKpjBPugwrFb1dg/nXfmdXa7 jDSFZvbKvBEFagwLDHK17EVGm6JbLEpAazy6mZvQtw== X-Google-Smtp-Source: AGHT+IF5SudbkpRySXFUULzLi4eFl2+OTi/es6KgszP19U4WThxMrKuwCov4UgW3Uqz7ihDD11g87g== X-Received: by 2002:a17:902:ea94:b0:1b5:6312:4c5b with SMTP id x20-20020a170902ea9400b001b563124c5bmr2761541plb.63.1691599482440; Wed, 09 Aug 2023 09:44:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:41 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harry van Haaren Subject: [PATCH 06/15] eal: make rte_service_lcore_may_be_active stable Date: Wed, 9 Aug 2023 09:42:58 -0700 Message-Id: <20230809164312.308093-7-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 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 This API was added in 2020. Signed-off-by: Stephen Hemminger Acked-by: Harry van Haaren --- lib/eal/include/rte_service.h | 1 - lib/eal/version.map | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/eal/include/rte_service.h b/lib/eal/include/rte_service.h index a77f33be488c..da5e246f7abf 100644 --- a/lib/eal/include/rte_service.h +++ b/lib/eal/include/rte_service.h @@ -275,7 +275,6 @@ int32_t rte_service_lcore_stop(uint32_t lcore_id); * @retval 1 Service thread is in the service core polling loop. * @retval -EINVAL Invalid *lcore_id* provided. */ -__rte_experimental int32_t rte_service_lcore_may_be_active(uint32_t lcore_id); /** diff --git a/lib/eal/version.map b/lib/eal/version.map index e6d2fda95770..2e50d6857d26 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -58,6 +58,7 @@ DPDK_24 { rte_devargs_parsef; rte_devargs_remove; rte_devargs_type_count; + rte_drand; rte_driver_name; rte_dump_physmem_layout; rte_dump_stack; @@ -265,6 +266,7 @@ DPDK_24 { rte_service_lcore_count_services; rte_service_lcore_del; rte_service_lcore_list; + rte_service_lcore_may_be_active; rte_service_lcore_reset_all; rte_service_lcore_start; rte_service_lcore_stop; @@ -371,7 +373,6 @@ EXPERIMENTAL { # added in 20.11 __rte_eal_trace_generic_size_t; # WINDOWS_NO_EXPORT rte_cpu_get_intrinsics_support; # WINDOWS_NO_EXPORT - rte_service_lcore_may_be_active; rte_vect_get_max_simd_bitwidth; rte_vect_set_max_simd_bitwidth; @@ -400,7 +401,6 @@ EXPERIMENTAL { rte_intr_type_set; # added in 22.07 - rte_drand; rte_thread_get_affinity_by_id; rte_thread_get_priority; rte_thread_self; From patchwork Wed Aug 9 16:42:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130056 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 CAA454301A; Wed, 9 Aug 2023 18:45:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B94A743278; Wed, 9 Aug 2023 18:44:47 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 6753043265 for ; Wed, 9 Aug 2023 18:44:44 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1bb84194bf3so479505ad.3 for ; Wed, 09 Aug 2023 09:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599483; x=1692204283; 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=y0GIspiLzPo1MfBSiCT74/2qwarIAiVXJOv/r4dHuSk=; b=ijI55t6IaVEE5Baehu72l/Lvb9etcfa8zocYwzu1j8c2pdcwmdVL/eeTQgokI9Piba 7tjZ/bq0h24T7rqiqplh0YwpbiYvR+UfvCQJ0E7YIIyT5f28nhXP0SV/uK0KKy37mZze jiDvqtIRqtB3cXngIIoE9OQNAKpjf7mMVrvIdlSkqmq6dXPJY8oedEg+3PUNEtPQjzug GEAJbQFRom24qxEqINWtR6N48Tybrpejjpn629rbsKXSaWJ+rGDmi9JJie3eoACq4jVr 1u+7lZc4a239Rzvjfw/0SRknyKh7GXP5ALIXbLl3niTfG0JhGj/x8WWphRAlKKaKi5tS cHlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599483; x=1692204283; 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=y0GIspiLzPo1MfBSiCT74/2qwarIAiVXJOv/r4dHuSk=; b=Q6gD3nLevdLcv08gahXV7AuuifrECRkIHiDNTLQHWACpI1+inhhhIznA03fruSvm02 YkDFFoMv97MYatnU5/lBrAt48SXgsrXGvUiMVHOFkKl040rtxdUoP7vUKqx0fSoJzho7 eZ6kRA5TjW/B9tyKHegWntFqJGdv9iTU3sdpWYGro6FKvkCk0m8M3iiNngF0lKz0jBlw RioUxod5wRVdjl6BloqILA+e/8nva3mq1538u0/bbiltenEvTxsZT5PO4tTR8yu82NAv 41nFwYSIkQOmKcDRf0EHR2Fg3FOpiHg01b7UrYy92v/Zesbl2/wTmjAttTZTGLf6Qbnu 3tHw== X-Gm-Message-State: AOJu0YxsHYuR6UtkLudwxMx7NyE5MI38QL3T8Wuyv8XbnL4P3r1fIi2G 4lfuYr5s8RQklMiwr4G9L0O05iVdBaVBlSV2tpXb1g== X-Google-Smtp-Source: AGHT+IFVOTjCrbLkdjJ6yU1h0pK9HAbLaNVg/4nSwSPvIHdzjn3UtaE/ruHAv/QNTN4cZLqeNd7NQw== X-Received: by 2002:a17:902:e84c:b0:1bc:3504:de35 with SMTP id t12-20020a170902e84c00b001bc3504de35mr3955826plg.62.1691599483405; Wed, 09 Aug 2023 09:44:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:42 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 07/15] eal: make rte_devargs_reset stable Date: Wed, 9 Aug 2023 09:42:59 -0700 Message-Id: <20230809164312.308093-8-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 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 Was added in 20.05 release. Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_devargs.h | 1 - lib/eal/version.map | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/eal/include/rte_devargs.h b/lib/eal/include/rte_devargs.h index 38dee2f2880c..2a5860353d93 100644 --- a/lib/eal/include/rte_devargs.h +++ b/lib/eal/include/rte_devargs.h @@ -169,7 +169,6 @@ __rte_format_printf(2, 0); * @param da * The devargs structure holding the device information. */ -__rte_experimental void rte_devargs_reset(struct rte_devargs *da); diff --git a/lib/eal/version.map b/lib/eal/version.map index 2e50d6857d26..200824a9e91f 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -57,6 +57,7 @@ DPDK_24 { rte_devargs_parse; rte_devargs_parsef; rte_devargs_remove; + rte_devargs_reset; rte_devargs_type_count; rte_drand; rte_driver_name; @@ -382,7 +383,6 @@ EXPERIMENTAL { rte_power_pause; # WINDOWS_NO_EXPORT # added in 21.05 - rte_devargs_reset; rte_intr_callback_unregister_sync; rte_thread_key_create; rte_thread_key_delete; From patchwork Wed Aug 9 16:43:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130057 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 2DEC14301A; Wed, 9 Aug 2023 18:45:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DC7514327D; Wed, 9 Aug 2023 18:44:48 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id A889043249 for ; Wed, 9 Aug 2023 18:44:45 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1bc8a2f71eeso675755ad.0 for ; Wed, 09 Aug 2023 09:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599484; x=1692204284; 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=HLHKZeUBrAr0fj1G5so0E+JB4vGlLlT8V/6ChuM5CVY=; b=d8LbuFDZtEp/pzP+9fzyxAjH6xGCBCYIKPutRweTqmSYuABn0uG95qT/Rp6Rz9EvV+ cw3ZFql1/byg5SgZ2oNFFjrpbILivptnhx/JRiJrlELxcKDDJ32vJ/UPWp7GNBf6Mq2X gEWj5TQYdL5f9ZgHJLNu5jaWS60Zw4pG79WJqeK4g8bGHTjHrEwMlGmoSz+WnKhLTdrX LYlxN6y4HNogggYr4qOBzUpMu+4vO79tQOXhLoUtto3rowf4zVd20SGYwV6v01w7WG6A vPZpMxHcdyH4bvu9vBpnL/te4K98Jb/sbWN4BK4THynNx/DlVXFSxetud6nqBOJBdFgb us8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599484; x=1692204284; 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=HLHKZeUBrAr0fj1G5so0E+JB4vGlLlT8V/6ChuM5CVY=; b=J5hGPR7v8Iuo1mc/GxiCD+jCpS8Wsrv0FwSMpoIQX6O0xnJPTkSy9/El4YJnW4kv32 1cOxXo8qoBswE2o+Wcv2DAfHpOrIO6Q7fbks4Edd4q7v40MC/SGSdHopoe4iigYTjMnN m2Xs0nlnp0pE+xioVI92bHxMoE3CdJWjAL3ueoSaxzFGH+a0o/OXXMJ1Lzpbx2zuu1S4 E74unrNiS+G+SmWpHbM7D99zJVdf7fnyTWyXKSRRsh3Uj7hcWIzBYG6T2jb+oaGFMh0a OTxB+RBTrslGp5u++NSmnsK5kShNJjh7EZMrFtGstAXOIj+spd85G3IKw1b86d6M+pAS 5f/A== X-Gm-Message-State: AOJu0YyQkEOgNtis/etyvE8gTBt39CnFSPnqyCCUnLBugSkIgMCEM9lf PkUDKAUZFh55yCmCoe8HCr67BO0mFbeVCCcCDPMqfw== X-Google-Smtp-Source: AGHT+IG4K6IctJh1ixEPFczJIXJrhngl5emN50dmwccKRJjNdXGls6DFG39N7X/49mkFeHTSjuFjDg== X-Received: by 2002:a17:902:7c95:b0:1b2:2c0c:d400 with SMTP id y21-20020a1709027c9500b001b22c0cd400mr2747834pll.52.1691599484687; Wed, 09 Aug 2023 09:44:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:43 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 08/15] eal: make pflock API stable Date: Wed, 9 Aug 2023 09:43:00 -0700 Message-Id: <20230809164312.308093-9-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 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 Added in 21.11 release. Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_pflock.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/eal/include/rte_pflock.h b/lib/eal/include/rte_pflock.h index a3f7291fa1f0..a751a7d8add9 100644 --- a/lib/eal/include/rte_pflock.h +++ b/lib/eal/include/rte_pflock.h @@ -79,15 +79,11 @@ typedef struct rte_pflock rte_pflock_t; #define RTE_PFLOCK_INITIALIZER { } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Initialize the pflock to an unlocked state. * * @param pf * A pointer to the pflock. */ -__rte_experimental static inline void rte_pflock_init(struct rte_pflock *pf) { @@ -98,15 +94,11 @@ rte_pflock_init(struct rte_pflock *pf) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Take a pflock for read. * * @param pf * A pointer to a pflock structure. */ -__rte_experimental static inline void rte_pflock_read_lock(rte_pflock_t *pf) { @@ -127,15 +119,11 @@ rte_pflock_read_lock(rte_pflock_t *pf) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Release a pflock locked for reading. * * @param pf * A pointer to the pflock structure. */ -__rte_experimental static inline void rte_pflock_read_unlock(rte_pflock_t *pf) { @@ -143,15 +131,11 @@ rte_pflock_read_unlock(rte_pflock_t *pf) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Take the pflock for write. * * @param pf * A pointer to the pflock structure. */ -__rte_experimental static inline void rte_pflock_write_lock(rte_pflock_t *pf) { @@ -179,15 +163,11 @@ rte_pflock_write_lock(rte_pflock_t *pf) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Release a pflock held for writing. * * @param pf * A pointer to a pflock structure. */ -__rte_experimental static inline void rte_pflock_write_unlock(rte_pflock_t *pf) { From patchwork Wed Aug 9 16:43:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130058 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 27D4A4301A; Wed, 9 Aug 2023 18:45:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F02EA43280; Wed, 9 Aug 2023 18:44:49 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id DBF4F43274 for ; Wed, 9 Aug 2023 18:44:46 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1bc99545d53so607505ad.1 for ; Wed, 09 Aug 2023 09:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599486; x=1692204286; 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=DO3zqTh+LtBzxiuKTv5YcEKJd/Vqww3DcQSFWARMiEA=; b=IEdTsYQ8zGxYoA/Jm7CLVdDhGEYYhtIiIJ2sFW840rvyHP0sELYt/1d/9PDGgy6a/i +DjxuRyFTsEcUZvNiQpzmwTYwf8p46Mrj88EsyCw0JsVN9Ukv0AAN87u/uSqio3vKhd1 F3YahBMoYCQayC3wqyyd8sPmZtpK+tmaKpu+fneOzOoK+W4CsgAnYIIOrjy81S5Dnxvt mdpDanIilu7ItOg+ckrNhUxyIf6lQVR/GBQzSyxAkTXNX1li7kQWPZVvffnHGEbdWXRp LbHwTwwRAAV2FBzaMmRUbA/yo77uYy8Wz81/fgEVRD11X8LqIjm/Z/ujIK5yw9n+JPcR VfCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599486; x=1692204286; 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=DO3zqTh+LtBzxiuKTv5YcEKJd/Vqww3DcQSFWARMiEA=; b=O1jm3+qsfdJmcfrAS+r8kqbcZIMvcKUZfH1LoXnKfZRiESJSMOh+T86JU8sDWztCGS dkD+AnDVADbvQExlNptk65zgriH8OJ9KAYhIBvpo4krrfCpX0bOJaqHidmVmGDHADCWN xrtfu7xp7gIFKPipH3vhYP4/ZrGP/PvYQwHpQAEXsLGF2tly+V66LAMhPHaVN9L+pfEt LaWEiOKJlCWVzRbQtzo/0Bk7Gbx1Ec4x4CGwx40neU6IXUp/B+q28XmAulGAnM70S4Dd R+i9bK6qrYzS+y19tS6/Yj8ZZIJBgfgaz6lXzu8GbQFyH52PkTiOHpKumDhdh0X3fWkK 1p0A== X-Gm-Message-State: AOJu0YzG9zKrWhz8TQybYYOEubcUoaA5vgmiRSOkR9yLQc286ygista0 nVnRjO1kXwmEJhy/3sMmLu6rwjuenYiNNhELqpgcOA== X-Google-Smtp-Source: AGHT+IHovz/GygKK2Lzh5LqFZcIjndlPWGFPPzo0vDc2/nO5UshjZIaSU69s4s8E7FsxjJoC4JfB7g== X-Received: by 2002:a17:902:aa05:b0:1bb:8f37:dd0b with SMTP id be5-20020a170902aa0500b001bb8f37dd0bmr3119795plb.52.1691599485874; Wed, 09 Aug 2023 09:44:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:45 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , =?utf-8?q?Mattias_R?= =?utf-8?q?=C3=B6nnblom?= Subject: [PATCH 09/15] eal: make seqcount and seqlock stable Date: Wed, 9 Aug 2023 09:43:01 -0700 Message-Id: <20230809164312.308093-10-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 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 add back in 22.07 release. Signed-off-by: Stephen Hemminger Acked-by: Mattias Rönnblom --- lib/eal/include/rte_seqcount.h | 23 ----------------------- lib/eal/include/rte_seqlock.h | 21 --------------------- 2 files changed, 44 deletions(-) diff --git a/lib/eal/include/rte_seqcount.h b/lib/eal/include/rte_seqcount.h index ff62708e1b7b..6390a5a72f7c 100644 --- a/lib/eal/include/rte_seqcount.h +++ b/lib/eal/include/rte_seqcount.h @@ -40,15 +40,11 @@ typedef struct { #define RTE_SEQCOUNT_INITIALIZER { .sn = 0 } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Initialize the sequence counter. * * @param seqcount * A pointer to the sequence counter. */ -__rte_experimental static inline void rte_seqcount_init(rte_seqcount_t *seqcount) { @@ -56,9 +52,6 @@ rte_seqcount_init(rte_seqcount_t *seqcount) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Begin a read-side critical section. * * A call to this function marks the beginning of a read-side critical @@ -100,8 +93,6 @@ rte_seqcount_init(rte_seqcount_t *seqcount) * * @see rte_seqcount_read_retry() */ - -__rte_experimental static inline uint32_t rte_seqcount_read_begin(const rte_seqcount_t *seqcount) { @@ -113,9 +104,6 @@ rte_seqcount_read_begin(const rte_seqcount_t *seqcount) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * End a read-side critical section. * * A call to this function marks the end of a read-side critical @@ -145,8 +133,6 @@ rte_seqcount_read_begin(const rte_seqcount_t *seqcount) * * @see rte_seqcount_read_begin() */ - -__rte_experimental static inline bool rte_seqcount_read_retry(const rte_seqcount_t *seqcount, uint32_t begin_sn) { @@ -171,9 +157,6 @@ rte_seqcount_read_retry(const rte_seqcount_t *seqcount, uint32_t begin_sn) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Begin a write-side critical section. * * A call to this function marks the beginning of a write-side @@ -195,8 +178,6 @@ rte_seqcount_read_retry(const rte_seqcount_t *seqcount, uint32_t begin_sn) * * @see rte_seqcount_write_end() */ - -__rte_experimental static inline void rte_seqcount_write_begin(rte_seqcount_t *seqcount) { @@ -213,9 +194,6 @@ rte_seqcount_write_begin(rte_seqcount_t *seqcount) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * End a write-side critical section. * * A call to this function marks the end of the write-side critical @@ -227,7 +205,6 @@ rte_seqcount_write_begin(rte_seqcount_t *seqcount) * * @see rte_seqcount_write_begin() */ -__rte_experimental static inline void rte_seqcount_write_end(rte_seqcount_t *seqcount) { diff --git a/lib/eal/include/rte_seqlock.h b/lib/eal/include/rte_seqlock.h index fcbb9c586668..589c98188529 100644 --- a/lib/eal/include/rte_seqlock.h +++ b/lib/eal/include/rte_seqlock.h @@ -114,9 +114,6 @@ typedef struct { } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Initialize the seqlock. * * This function initializes the seqlock, and leaves the writer-side @@ -125,7 +122,6 @@ typedef struct { * @param seqlock * A pointer to the seqlock. */ -__rte_experimental static inline void rte_seqlock_init(rte_seqlock_t *seqlock) { @@ -134,9 +130,6 @@ rte_seqlock_init(rte_seqlock_t *seqlock) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Begin a read-side critical section. * * See rte_seqcount_read_retry() for details. @@ -150,8 +143,6 @@ rte_seqlock_init(rte_seqlock_t *seqlock) * @see rte_seqlock_read_retry() * @see rte_seqcount_read_retry() */ - -__rte_experimental static inline uint32_t rte_seqlock_read_begin(const rte_seqlock_t *seqlock) { @@ -159,9 +150,6 @@ rte_seqlock_read_begin(const rte_seqlock_t *seqlock) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * End a read-side critical section. * * See rte_seqcount_read_retry() for details. @@ -177,7 +165,6 @@ rte_seqlock_read_begin(const rte_seqlock_t *seqlock) * * @see rte_seqlock_read_begin() */ -__rte_experimental static inline bool rte_seqlock_read_retry(const rte_seqlock_t *seqlock, uint32_t begin_sn) { @@ -185,9 +172,6 @@ rte_seqlock_read_retry(const rte_seqlock_t *seqlock, uint32_t begin_sn) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Begin a write-side critical section. * * A call to this function acquires the write lock associated @p @@ -212,7 +196,6 @@ rte_seqlock_read_retry(const rte_seqlock_t *seqlock, uint32_t begin_sn) * * @see rte_seqlock_write_unlock() */ -__rte_experimental static inline void rte_seqlock_write_lock(rte_seqlock_t *seqlock) __rte_exclusive_lock_function(&seqlock->lock) @@ -224,9 +207,6 @@ rte_seqlock_write_lock(rte_seqlock_t *seqlock) } /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * End a write-side critical section. * * A call to this function marks the end of the write-side critical @@ -238,7 +218,6 @@ rte_seqlock_write_lock(rte_seqlock_t *seqlock) * * @see rte_seqlock_write_lock() */ -__rte_experimental static inline void rte_seqlock_write_unlock(rte_seqlock_t *seqlock) __rte_unlock_function(&seqlock->lock) From patchwork Wed Aug 9 16:43:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130059 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 4FD8E4301A; Wed, 9 Aug 2023 18:45:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EF23943283; Wed, 9 Aug 2023 18:44:50 +0200 (CEST) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id 038014327A for ; Wed, 9 Aug 2023 18:44:48 +0200 (CEST) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-686b91c2744so5156061b3a.0 for ; Wed, 09 Aug 2023 09:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599487; x=1692204287; 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=l+pEAPV5EZTGAdiM7VyA0Hg7lUtYBWY7KU6wCk5NtsI=; b=EM4WqBX4nyN4oJpg/KcNf3s+NW1vaZT93oVHiAEwrG7wExd5KUnFxpy7FwO+IWs2Jt hRgI9T4UKW2BduecugY6NAKzcM7+dBPwkxLPSRfoD9qG+MTz2sX++QISTZMuqLVgL5fc i4nSL0Cu2IhVjiv+zm9pp1ikBgRzjUY8D1qmzBGh3L4Y6/4nYXJHGfcnZgUWRJfyx+Yz gLvQmij9J1XU+XzSkI+ikvy+gPg+n79jQlfYTjuXuno8q+TM+pHD3w+1Lx4oA6xv/XU2 yFAZLYJSa5iNZbZKM32NUF2jqRcBbXSRgNlUrFjGu18o1OqIe+V3l9ybtJTzz4nfFKma KE2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599487; x=1692204287; 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=l+pEAPV5EZTGAdiM7VyA0Hg7lUtYBWY7KU6wCk5NtsI=; b=JtDnjJUuZ0jwluIxIL+aXbFVIYWqm5O0r1KLaR3OR2Lhb+XZ96vxXrHUWRGcUkq0qD ZWdJi/jysz5OzsQTn4srYvwM3df3gPaBudYayjp6a6slhoxIQb9xfhhGgvKZHTugop4y Ty0cleNimvaI8ch3RgicFc8RPWzGSoHWeGUMjnBkCaofxUXidgDnA5qir84IQd3KEHWO 5+khx2D7l7x4dVO//Mnrc986dPMU0Fs96fzuk2ubULC2JnO4I0QsPUqJ0mkiQHgap6Fc +T8rqZT/cZzrqJG2rT2QEp/Zx8osz8eoKdvxe/GrgHoVHVK1nntR0pyEh8DOHwqS9b8n BNIw== X-Gm-Message-State: AOJu0YyF3PAsO7I50fYKWtX8hAHVfB2XzV0CxqH1Z7oFCHmTh68prfYo y+glznO06V5W2vvo07U8Tg56D8Di5ajrm3DU+4Cn0g== X-Google-Smtp-Source: AGHT+IH2p19MQAu/HT9hj7V/nw/52VdGNheOo4dGB6KE7eBOl+GPyXblF/qST1fN5proZ8TaDVPitg== X-Received: by 2002:a05:6a21:9989:b0:125:517c:4f18 with SMTP id ve9-20020a056a21998900b00125517c4f18mr3676089pzb.8.1691599486945; Wed, 09 Aug 2023 09:44:46 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:46 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harman Kalra Subject: [PATCH 10/15] eal: mark rte_intr_XXX API's as stable Date: Wed, 9 Aug 2023 09:43:02 -0700 Message-Id: <20230809164312.308093-11-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 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 back in 2020. Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_interrupts.h | 28 ---------------------------- lib/eal/version.map | 14 +++++++------- 2 files changed, 7 insertions(+), 35 deletions(-) diff --git a/lib/eal/include/rte_interrupts.h b/lib/eal/include/rte_interrupts.h index bcafdd58a912..1b9a0b2a78f3 100644 --- a/lib/eal/include/rte_interrupts.h +++ b/lib/eal/include/rte_interrupts.h @@ -127,9 +127,6 @@ rte_intr_callback_unregister_pending(const struct rte_intr_handle *intr_handle, rte_intr_unregister_callback_fn ucb_fn); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Loop until rte_intr_callback_unregister() succeeds. * After a call to this function, * the callback provided by the specified interrupt handle is unregistered. @@ -146,7 +143,6 @@ rte_intr_callback_unregister_pending(const struct rte_intr_handle *intr_handle, * - On success, return the number of callback entities removed. * - On failure, a negative value. */ -__rte_experimental int rte_intr_callback_unregister_sync(const struct rte_intr_handle *intr_handle, rte_intr_callback_fn cb, void *cb_arg); @@ -201,9 +197,6 @@ int rte_intr_ack(const struct rte_intr_handle *intr_handle); int rte_thread_is_intr(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * It allocates memory for interrupt instance. API takes flag as an argument * which define from where memory should be allocated i.e. using DPDK memory * management library APIs or normal heap allocation. @@ -221,28 +214,20 @@ int rte_thread_is_intr(void); * - On success, address of interrupt handle. * - On failure, NULL. */ -__rte_experimental struct rte_intr_handle * rte_intr_instance_alloc(uint32_t flags); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Free the memory allocated for interrupt handle resources. * * @param intr_handle * Interrupt handle allocated with rte_intr_instance_alloc(). * If intr_handle is NULL, no operation is performed. */ -__rte_experimental void rte_intr_instance_free(struct rte_intr_handle *intr_handle); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Set the fd field of interrupt handle with user provided * file descriptor. * @@ -255,14 +240,10 @@ rte_intr_instance_free(struct rte_intr_handle *intr_handle); * - On success, zero. * - On failure, a negative value and rte_errno is set. */ -__rte_experimental int rte_intr_fd_set(struct rte_intr_handle *intr_handle, int fd); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Returns the fd field of the given interrupt handle instance. * * @param intr_handle @@ -272,14 +253,10 @@ rte_intr_fd_set(struct rte_intr_handle *intr_handle, int fd); * - On success, fd field. * - On failure, a negative value. */ -__rte_experimental int rte_intr_fd_get(const struct rte_intr_handle *intr_handle); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Set the type field of interrupt handle with user provided * interrupt type. * @@ -292,15 +269,11 @@ rte_intr_fd_get(const struct rte_intr_handle *intr_handle); * - On success, zero. * - On failure, a negative value and rte_errno is set. */ -__rte_experimental int rte_intr_type_set(struct rte_intr_handle *intr_handle, enum rte_intr_handle_type type); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Returns the type field of the given interrupt handle instance. * * @param intr_handle @@ -310,7 +283,6 @@ rte_intr_type_set(struct rte_intr_handle *intr_handle, * - On success, interrupt type * - On failure, RTE_INTR_HANDLE_UNKNOWN. */ -__rte_experimental enum rte_intr_handle_type rte_intr_type_get(const struct rte_intr_handle *intr_handle); diff --git a/lib/eal/version.map b/lib/eal/version.map index 200824a9e91f..d75a7379cbdf 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -138,8 +138,15 @@ DPDK_24 { rte_intr_callback_register; rte_intr_callback_unregister; rte_intr_callback_unregister_pending; + rte_intr_callback_unregister_sync; rte_intr_disable; rte_intr_enable; + rte_intr_fd_get; + rte_intr_fd_set; + rte_intr_instance_alloc; + rte_intr_instance_free; + rte_intr_type_get; + rte_intr_type_set; rte_keepalive_create; # WINDOWS_NO_EXPORT rte_keepalive_dispatch_pings; # WINDOWS_NO_EXPORT rte_keepalive_mark_alive; # WINDOWS_NO_EXPORT @@ -383,7 +390,6 @@ EXPERIMENTAL { rte_power_pause; # WINDOWS_NO_EXPORT # added in 21.05 - rte_intr_callback_unregister_sync; rte_thread_key_create; rte_thread_key_delete; rte_thread_value_get; @@ -393,12 +399,6 @@ EXPERIMENTAL { rte_power_monitor_multi; # WINDOWS_NO_EXPORT # added in 21.11 - rte_intr_fd_get; - rte_intr_fd_set; - rte_intr_instance_alloc; - rte_intr_instance_free; - rte_intr_type_get; - rte_intr_type_set; # added in 22.07 rte_thread_get_affinity_by_id; From patchwork Wed Aug 9 16:43:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130060 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 AA51D4301A; Wed, 9 Aug 2023 18:45:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B85F43292; Wed, 9 Aug 2023 18:44:52 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 105E043280 for ; Wed, 9 Aug 2023 18:44:49 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1bc7e65ea44so8519615ad.1 for ; Wed, 09 Aug 2023 09:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599488; x=1692204288; 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=4Y4zV71QocYjJfZZA9ZVrINipdjAh52Mp69fipYbrhc=; b=L2QUiS+nyK3yTTyiO8qiSVptaAzUKOnOflXYwo8ZYE6Bt/XT/DoMY4vxlOKlHH7znu dPehNJAZ1VP4U06N99aknHyLHx/Vbb8moNesY6jvTYCFJMyxbYa6Zmbu3gDOL4kReIht RFyf85JZLFAfes3FCPcJh97tRktMeXuCcY9+4f9NwxL4g4EEVKgVI0s9eO3DBTebmO7p SQ2xQQaDxHo+tjClRC8w5KQeyYl7boT85u9tb2Y4tDhieXwQol/n5vJ5dRslYXYdVa4V 6u1vXH/mwhhYBBU4prerUUs564y13sKWRhlH8SIJr5FtGVMRFe9CwBzgOfBKWI2ahXF6 Ar1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599488; x=1692204288; 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=4Y4zV71QocYjJfZZA9ZVrINipdjAh52Mp69fipYbrhc=; b=OdDc+wYxm53aa7nIGVdTsWt8aa+zM6XMUn6E3iUjGmTnAhl8uwyc4pX6sK9Jcj3kIA SLcrIJX+8r0YNNm4UpblRrScxOn5eehzNpF0SdCQKgn2CCzAEWLvZYRJClipIuv+ZqKd /fVyq+9hLrA9BpuYKd9GcrHlRaBY3At3n3xvMAhi0G3h7tLmTRvLQ4Gb1cjBWNR/Cz7v ajEtey3d0oTgDkcWQx4ZiXI71MoPfbJioCphJFGvqZ9u5pyR/OgNvTG9JeekgPlXioYS M8kb8tfjUcTABZPQOs4N+wMV/IzKGHTilNUmq/qHN627dG/IyTYucejbwQFVf/+ULh98 ZteA== X-Gm-Message-State: AOJu0YwYnYHh1gUofK2pdRvc329H5WskqxTStopLeiko39Rrvv3pkyfQ KweazuayoCdFnZafVXAmJWM0o6eOLKYzNrAmaYMYUQ== X-Google-Smtp-Source: AGHT+IFSAIK4rFW9RXCxtHNpzvbQx7+YSHGCTUURGMTTuTEJjRYFot/hs+GK5lAogVrMdZLELlyqHA== X-Received: by 2002:a17:902:e549:b0:1b7:f64b:379b with SMTP id n9-20020a170902e54900b001b7f64b379bmr5071624plf.17.1691599488085; Wed, 09 Aug 2023 09:44:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:47 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ruifeng Wang , Bruce Richardson , Konstantin Ananyev Subject: [PATCH 11/15] eal: mark rte_atomic128_cmp_exchange as stable Date: Wed, 9 Aug 2023 09:43:03 -0700 Message-Id: <20230809164312.308093-12-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 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 This has been around since 2021. Signed-off-by: Stephen Hemminger --- lib/eal/arm/include/rte_atomic_64.h | 1 - lib/eal/include/generic/rte_atomic.h | 1 - lib/eal/x86/include/rte_atomic_64.h | 1 - 3 files changed, 3 deletions(-) diff --git a/lib/eal/arm/include/rte_atomic_64.h b/lib/eal/arm/include/rte_atomic_64.h index 604791150765..5005a6dfed76 100644 --- a/lib/eal/arm/include/rte_atomic_64.h +++ b/lib/eal/arm/include/rte_atomic_64.h @@ -94,7 +94,6 @@ __ATOMIC128_CAS_OP(__cas_128_acq_rel, "caspal") #endif -__rte_experimental static inline int rte_atomic128_cmp_exchange(rte_int128_t *dst, rte_int128_t *exp, const rte_int128_t *src, unsigned int weak, int success, diff --git a/lib/eal/include/generic/rte_atomic.h b/lib/eal/include/generic/rte_atomic.h index aef44e245548..1a9323dc8ad8 100644 --- a/lib/eal/include/generic/rte_atomic.h +++ b/lib/eal/include/generic/rte_atomic.h @@ -1121,7 +1121,6 @@ typedef struct { * @return * Non-zero on success; 0 on failure. */ -__rte_experimental static inline int rte_atomic128_cmp_exchange(rte_int128_t *dst, rte_int128_t *exp, diff --git a/lib/eal/x86/include/rte_atomic_64.h b/lib/eal/x86/include/rte_atomic_64.h index 0edee8627224..e968bbf0ce65 100644 --- a/lib/eal/x86/include/rte_atomic_64.h +++ b/lib/eal/x86/include/rte_atomic_64.h @@ -182,7 +182,6 @@ static inline void rte_atomic64_clear(rte_atomic64_t *v) /*------------------------ 128 bit atomic operations -------------------------*/ -__rte_experimental static inline int rte_atomic128_cmp_exchange(rte_int128_t *dst, rte_int128_t *exp, From patchwork Wed Aug 9 16:43:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130061 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 4929B4301A; Wed, 9 Aug 2023 18:46:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 756C943294; Wed, 9 Aug 2023 18:44:53 +0200 (CEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 48F1F43283 for ; Wed, 9 Aug 2023 18:44:50 +0200 (CEST) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1bb893e6365so501735ad.2 for ; Wed, 09 Aug 2023 09:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599489; x=1692204289; 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=Vp81gVBBZBKOV8LKne5JfWqII6Dw/Hq5ty7FEWxkB74=; b=bvr7rVcOvZf3NJN79syB0ZuoQNpOZZzcwhZjkQbOtDxwwyicXGez8PpjzG9AoGNubo G0U+JZt5RGZ49fHMNgay73LBZLIAk5cCRFIBE4Tr11Ot/6qquU827IqaCYZP7XDeWiOh m8FDPYg5LVcKjYM3dvDXeKzt6vPzvc5yhEyUVcPO2I1cqsGlHi1G1woqTFe5FgooiU0V lUS9WN1rjTgOa+BX+aKh8Zg0UllQh0gVtgtzbQnBvgj308TH8UkfZd5XoWge//2TwjZP ekdq3aF+2di7HDFJWuNlOeSrK+kmWK3te+KKjacr51rWars6nh7ldWxCqHljUJz3Jybl m1gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599489; x=1692204289; 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=Vp81gVBBZBKOV8LKne5JfWqII6Dw/Hq5ty7FEWxkB74=; b=AMEOwVKxl6X1+nD+UqRqT3x+zL9r238WOpXp7ACHPfT8H9643kc6TtYuxYv62wK5Ob TmsY7a7tKimAB9SY/+aLKNRI89lNuB3ss6/luakEHnPtSLzEwLzNrDw5AeJakiMvaCa4 OeiwKUDjnEAjnGgSEtWZhwOHopBIxnO/mz1w53Mb+WiG02PfhEjy+1J/DzNmPfiSQS2n carg8qVRW7l6z1F28lf+L95+nMz0rMwLlFQE7yH1K+USzVkVB+3s3OollUQ/e3D6Odon MR7t6aSlFPZGi7TDqYrQ2Vh/EgHfK3Z8y66Ht7Ip9TnR8gmosSX7K/nIG2tNjhSxjZhj JmmA== X-Gm-Message-State: AOJu0YwUXHVJp6scFhsRt1+k3APEjodK2La2YPN5WmHaThDUoHfxfrZm sy7nkyr2gb3DDsIFksahzhzDAOK07nBBQrUV+PPHeg== X-Google-Smtp-Source: AGHT+IGY2eBo6a0R2HGKWnlrFgkiKd3xNFF0/bKD1F5KB7s7w9vJ5CllzLYKWRMOhSjBvNxVOJTJLA== X-Received: by 2002:a17:902:ea01:b0:1b9:e8a5:3699 with SMTP id s1-20020a170902ea0100b001b9e8a53699mr3503628plg.21.1691599489126; Wed, 09 Aug 2023 09:44:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:48 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 12/15] eal: make most rte_thread API's stable Date: Wed, 9 Aug 2023 09:43:04 -0700 Message-Id: <20230809164312.308093-13-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 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 All rte_thread API's added before 23.03 release should be marked as not experimental. Signed-off-by: Stephen Hemminger Acked-by: Tyler Retzlaff --- lib/eal/include/rte_thread.h | 57 ------------------------------------ lib/eal/version.map | 41 +++++++++++--------------- 2 files changed, 17 insertions(+), 81 deletions(-) diff --git a/lib/eal/include/rte_thread.h b/lib/eal/include/rte_thread.h index 369e2375f6a0..7da5794fc258 100644 --- a/lib/eal/include/rte_thread.h +++ b/lib/eal/include/rte_thread.h @@ -68,9 +68,6 @@ typedef struct { typedef struct eal_tls_key *rte_thread_key; /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Create a new thread that will invoke the 'thread_func' routine. * * @param thread_id @@ -89,7 +86,6 @@ typedef struct eal_tls_key *rte_thread_key; * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_create(rte_thread_t *thread_id, const rte_thread_attr_t *thread_attr, rte_thread_func thread_func, void *arg); @@ -128,9 +124,6 @@ rte_thread_create_control(rte_thread_t *thread, const char *name, void *arg); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Waits for the thread identified by 'thread_id' to terminate * * @param thread_id @@ -143,13 +136,9 @@ rte_thread_create_control(rte_thread_t *thread, const char *name, * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_join(rte_thread_t thread_id, uint32_t *value_ptr); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Indicate that the return value of the thread is not needed and * all thread resources should be release when the thread terminates. * @@ -160,19 +149,14 @@ int rte_thread_join(rte_thread_t thread_id, uint32_t *value_ptr); * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_detach(rte_thread_t thread_id); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Get the id of the calling thread. * * @return * Return the thread id of the calling thread. */ -__rte_experimental rte_thread_t rte_thread_self(void); /** @@ -196,9 +180,6 @@ void rte_thread_set_name(rte_thread_t thread_id, const char *thread_name); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Check if 2 thread ids are equal. * * @param t1 @@ -211,13 +192,9 @@ rte_thread_set_name(rte_thread_t thread_id, const char *thread_name); * If the ids are equal, return nonzero. * Otherwise, return 0. */ -__rte_experimental int rte_thread_equal(rte_thread_t t1, rte_thread_t t2); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Initialize the attributes of a thread. * These attributes can be passed to the rte_thread_create() function * that will create a new thread and set its attributes according to attr. @@ -229,13 +206,9 @@ int rte_thread_equal(rte_thread_t t1, rte_thread_t t2); * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_attr_init(rte_thread_attr_t *attr); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Set the thread priority value in the thread attributes pointed to * by 'thread_attr'. * @@ -249,16 +222,12 @@ int rte_thread_attr_init(rte_thread_attr_t *attr); * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_attr_set_priority(rte_thread_attr_t *thread_attr, enum rte_thread_priority priority); #ifdef RTE_HAS_CPUSET /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Set the CPU affinity value in the thread attributes pointed to * by 'thread_attr'. * @@ -272,14 +241,10 @@ int rte_thread_attr_set_priority(rte_thread_attr_t *thread_attr, * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_attr_set_affinity(rte_thread_attr_t *thread_attr, rte_cpuset_t *cpuset); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Get the value of CPU affinity that is set in the thread attributes pointed * to by 'thread_attr'. * @@ -293,14 +258,10 @@ int rte_thread_attr_set_affinity(rte_thread_attr_t *thread_attr, * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_attr_get_affinity(rte_thread_attr_t *thread_attr, rte_cpuset_t *cpuset); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Set the affinity of thread 'thread_id' to the cpu set * specified by 'cpuset'. * @@ -314,14 +275,10 @@ int rte_thread_attr_get_affinity(rte_thread_attr_t *thread_attr, * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_set_affinity_by_id(rte_thread_t thread_id, const rte_cpuset_t *cpuset); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Get the affinity of thread 'thread_id' and store it * in 'cpuset'. * @@ -335,7 +292,6 @@ int rte_thread_set_affinity_by_id(rte_thread_t thread_id, * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_get_affinity_by_id(rte_thread_t thread_id, rte_cpuset_t *cpuset); @@ -362,9 +318,6 @@ void rte_thread_get_affinity(rte_cpuset_t *cpusetp); #endif /* RTE_HAS_CPUSET */ /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Get the priority of a thread. * * @param thread_id @@ -377,14 +330,10 @@ void rte_thread_get_affinity(rte_cpuset_t *cpusetp); * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_get_priority(rte_thread_t thread_id, enum rte_thread_priority *priority); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Set the priority of a thread. * * @param thread_id @@ -397,7 +346,6 @@ int rte_thread_get_priority(rte_thread_t thread_id, * On success, return 0. * On failure, return a positive errno-style error number. */ -__rte_experimental int rte_thread_set_priority(rte_thread_t thread_id, enum rte_thread_priority priority); @@ -418,8 +366,6 @@ int rte_thread_set_priority(rte_thread_t thread_id, * rte_errno can be: ENOMEM - Memory allocation error. * ENOEXEC - Specific OS error. */ - -__rte_experimental int rte_thread_key_create(rte_thread_key *key, void (*destructor)(void *)); @@ -435,7 +381,6 @@ int rte_thread_key_create(rte_thread_key *key, * rte_errno can be: EINVAL - Invalid parameter passed. * ENOEXEC - Specific OS error. */ -__rte_experimental int rte_thread_key_delete(rte_thread_key key); /** @@ -452,7 +397,6 @@ int rte_thread_key_delete(rte_thread_key key); * rte_errno can be: EINVAL - Invalid parameter passed. * ENOEXEC - Specific OS error. */ -__rte_experimental int rte_thread_value_set(rte_thread_key key, const void *value); /** @@ -467,7 +411,6 @@ int rte_thread_value_set(rte_thread_key key, const void *value); * rte_errno can be: EINVAL - Invalid parameter passed. * ENOEXEC - Specific OS error. */ -__rte_experimental void *rte_thread_value_get(rte_thread_key key); #ifdef __cplusplus diff --git a/lib/eal/version.map b/lib/eal/version.map index d75a7379cbdf..a71147aec83f 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -298,12 +298,29 @@ DPDK_24 { rte_strscpy; rte_strsplit; rte_sys_gettid; + rte_thread_attr_get_affinity; + rte_thread_attr_init; + rte_thread_attr_set_affinity; + rte_thread_attr_set_priority; + rte_thread_create; + rte_thread_detach; + rte_thread_equal; rte_thread_get_affinity; + rte_thread_get_affinity_by_id; + rte_thread_get_priority; rte_thread_is_intr; + rte_thread_join; + rte_thread_key_create; + rte_thread_key_delete; rte_thread_register; + rte_thread_self; rte_thread_set_affinity; + rte_thread_set_affinity_by_id; + rte_thread_set_priority; rte_thread_setname; rte_thread_unregister; + rte_thread_value_get; + rte_thread_value_set; rte_uuid_compare; rte_uuid_is_null; rte_uuid_parse; @@ -389,34 +406,10 @@ EXPERIMENTAL { rte_power_monitor_wakeup; # WINDOWS_NO_EXPORT rte_power_pause; # WINDOWS_NO_EXPORT - # added in 21.05 - rte_thread_key_create; - rte_thread_key_delete; - rte_thread_value_get; - rte_thread_value_set; # added in 21.08 rte_power_monitor_multi; # WINDOWS_NO_EXPORT - # added in 21.11 - - # added in 22.07 - rte_thread_get_affinity_by_id; - rte_thread_get_priority; - rte_thread_self; - rte_thread_set_affinity_by_id; - rte_thread_set_priority; - - # added in 22.11 - rte_thread_attr_get_affinity; - rte_thread_attr_init; - rte_thread_attr_set_affinity; - rte_thread_attr_set_priority; - rte_thread_create; - rte_thread_detach; - rte_thread_equal; - rte_thread_join; - # added in 23.03 rte_lcore_register_usage_cb; rte_thread_create_control; From patchwork Wed Aug 9 16:43:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130062 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 0A0264301A; Wed, 9 Aug 2023 18:46:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FD324329A; Wed, 9 Aug 2023 18:44:54 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 3FBC643287 for ; Wed, 9 Aug 2023 18:44:51 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1bc6bfc4b58so609205ad.1 for ; Wed, 09 Aug 2023 09:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599490; x=1692204290; 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=GFwvWxGT+D/++VHrYHG1hPaBYp4KJDRNElcmKgTL1Wk=; b=0S81/8jJ2ZfAsCdE9PDRHXDpivuOxSTmrh1eK0dSVBRv/7dmGyJze/0JQuH/SP9Mg3 tQrxyMWXhGGNu1oGMBtZDn8jSiYtJVn/as98bfnYFR6eXZViR46XdypRhSkDfGwVjJpF N296zXPJZQOwb6Ffb0nKbTLrMnDhQS6VcqCgXsXatWClFLtbmGFrRSTr2TuSWgNcovio yxNBY1QWs2Z/+viQJFdhA5UrmkWMRT8ZvlZq49E/ZeYVCU5KnlH+XizQOPIr0tALj4KK nePBwa4NX1nlfq3POULi/ocfZTRlflixkIrmCg00fILiGqEoIPKDeXVEm+yq22XMSUhQ 5ygQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599490; x=1692204290; 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=GFwvWxGT+D/++VHrYHG1hPaBYp4KJDRNElcmKgTL1Wk=; b=WbaEC1EfsXBXx5O96rPb4a+vg4BBF8PSM952prUhIqOdncpyUKqJYmOycMgieIb45Q JHjX7r+ri6JxFnNnZhQP3gtCS8S5xZGtYbztPs0MXkoqYCDgPqtX+27mW7el1ydiL1e2 FML04JpuTXXdgErmNy9UsSvov364ep8Ry1Pe2bLQw28iOn+AvclyzhsD0IoK+jbw9lU7 bMsrpYa0G2DReE655tdRuIDYlwPOnPLeiP2GRs1+RiXiwa0a/7vk9Fak94aVhdeN2eDM mqMiFq+Z8W1RRlQ8HHoIAWwUJKnZB3KX5esL0vG+epfMl0HJL3mnii4NvrJXO9GxzOPI FCyw== X-Gm-Message-State: AOJu0YxUTnsOp4gpOu9/t0WxjI3CuVPugLFdOwb5up85DsS/8ljUfOER dCqFpSTQCouNf24wwP6aVaXC961vnd5DWjdb21Ap9g== X-Google-Smtp-Source: AGHT+IEzrJAb0GYY4U5AYPyJ31xbwwkB5MQ8ZYz5DwRiP9nup3qeca9iEHdvuqiRXDWh8WxbCxjYfA== X-Received: by 2002:a17:903:22cc:b0:1bc:73bf:304c with SMTP id y12-20020a17090322cc00b001bc73bf304cmr3725003plg.48.1691599490201; Wed, 09 Aug 2023 09:44:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:49 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 13/15] eal: mark rte_power API's stable Date: Wed, 9 Aug 2023 09:43:05 -0700 Message-Id: <20230809164312.308093-14-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 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 back in 2020. Signed-off-by: Stephen Hemminger --- lib/eal/include/generic/rte_power_intrinsics.h | 16 ---------------- lib/eal/version.map | 13 ++++--------- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/lib/eal/include/generic/rte_power_intrinsics.h b/lib/eal/include/generic/rte_power_intrinsics.h index f981df7d75a1..922c32c83fdb 100644 --- a/lib/eal/include/generic/rte_power_intrinsics.h +++ b/lib/eal/include/generic/rte_power_intrinsics.h @@ -54,9 +54,6 @@ struct rte_power_monitor_cond { }; /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Monitor specific address for changes. This will cause the CPU to enter an * architecture-defined optimized power state until either the specified * memory address is written to, a certain TSC timestamp is reached, or other @@ -84,14 +81,10 @@ struct rte_power_monitor_cond { * -EINVAL on invalid parameters * -ENOTSUP if unsupported */ -__rte_experimental int rte_power_monitor(const struct rte_power_monitor_cond *pmc, const uint64_t tsc_timestamp); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Wake up a specific lcore that is in a power optimized state and is monitoring * an address. * @@ -104,13 +97,9 @@ int rte_power_monitor(const struct rte_power_monitor_cond *pmc, * @param lcore_id * Lcore ID of a sleeping thread. */ -__rte_experimental int rte_power_monitor_wakeup(const unsigned int lcore_id); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Enter an architecture-defined optimized power state until a certain TSC * timestamp is reached. * @@ -126,13 +115,9 @@ int rte_power_monitor_wakeup(const unsigned int lcore_id); * -EINVAL on invalid parameters * -ENOTSUP if unsupported */ -__rte_experimental int rte_power_pause(const uint64_t tsc_timestamp); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Monitor a set of addresses for changes. This will cause the CPU to enter an * architecture-defined optimized power state until either one of the specified * memory addresses is written to, a certain TSC timestamp is reached, or other @@ -160,7 +145,6 @@ int rte_power_pause(const uint64_t tsc_timestamp); * -EINVAL on invalid parameters * -ENOTSUP if unsupported */ -__rte_experimental int rte_power_monitor_multi(const struct rte_power_monitor_cond pmc[], const uint32_t num, const uint64_t tsc_timestamp); diff --git a/lib/eal/version.map b/lib/eal/version.map index a71147aec83f..3b42d6e0e4c1 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -250,6 +250,10 @@ DPDK_24 { rte_mp_request_sync; rte_mp_sendmsg; rte_openlog_stream; + rte_power_monitor; # WINDOWS_NO_EXPORT + rte_power_monitor_wakeup; # WINDOWS_NO_EXPORT + rte_power_pause; # WINDOWS_NO_EXPORT + rte_power_monitor_multi; # WINDOWS_NO_EXPORT rte_rand; rte_rand_max; rte_realloc; @@ -401,15 +405,6 @@ EXPERIMENTAL { rte_vect_get_max_simd_bitwidth; rte_vect_set_max_simd_bitwidth; - # added in 21.02 - rte_power_monitor; # WINDOWS_NO_EXPORT - rte_power_monitor_wakeup; # WINDOWS_NO_EXPORT - rte_power_pause; # WINDOWS_NO_EXPORT - - - # added in 21.08 - rte_power_monitor_multi; # WINDOWS_NO_EXPORT - # added in 23.03 rte_lcore_register_usage_cb; rte_thread_create_control; From patchwork Wed Aug 9 16:43:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130063 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 A126B4301A; Wed, 9 Aug 2023 18:46:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 754B84329D; Wed, 9 Aug 2023 18:44:55 +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 AAF804325F for ; Wed, 9 Aug 2023 18:44:52 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1bbf0f36ce4so651405ad.0 for ; Wed, 09 Aug 2023 09:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599491; x=1692204291; 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=LbH8jX6eb5sqA29S91imtAF3ps9bBCivszKqAllqqDg=; b=XPWL2AHQ58Mfcg+b9JZ+9qFKDlpDACF3SZw7G2cfSEYKxBjUBj1ueQb2x0h7Un7iYS 5IAEYnEUfkSsx9NU6dNs1oDNtNb/UHmFaFl60o01DRtEg2JjY9qNXpb5HOxJwkgcYc7P RKPSqgff1auEQzGUraSi4qNrEzSIHtJXStFVPfG5ZhpeElZLM47ILNW02nyE1SWwq5Mj bus+0KbDHkIXi+lT1pN8EFGNsAWl+VP1mFiuVCqIXe1Uzp5sfyLtWOzD44h29+zXjhh/ +2+0bhVAvQMEV5wa664n9x63p6KqG0hIaZY/jSUzWaElLAHzrcSOhq/Vn0SwiBY3yg+s Ma6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599491; x=1692204291; 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=LbH8jX6eb5sqA29S91imtAF3ps9bBCivszKqAllqqDg=; b=Mir/1euKa9sPCLWgnwxP6IBJpzCSPAe35qxDFPF+A6B80Xsvq61BgoNZlrqz+6Cxuu HkBmmz+RxGXuuSpaOx4Lvyl9fVpwi+YwlAwmrxccUQXEDdOmthJmanU0F27tIPv4NiAq jXo/3puTzYFZyz1ROjsnwhWd2rcZTObqa5oIWJkKg4hxfkABIuhB9VLd9emFYA8kdaPa qbdIid+wbgShOUYPgoClX3WAsnxGQVgLf+6vVArqw83nw89j1aieJUQJpIDm+tjjC1MU bH43uvqSKVZtwctoQdv8M2QpSwSXNCGPeBC8mhdCHoOGaALkUckw5LaGUgJuAKB+u0M+ 1qZw== X-Gm-Message-State: AOJu0Yyfo0jdSGGzWRZQ6aKOJpuVbJ1kA2TXpGdiofcQ7jtshsHC63S7 3h0r8mpVLYTDgOhWf4axkt6rQ84oCxofgfUaRQfLog== X-Google-Smtp-Source: AGHT+IFXRm5r78X4bHK7xHGC8jzfjcYmQcDoZKATtrphA8HisBTatBewIFLZdYr58D9dn+0BPde8+Q== X-Received: by 2002:a17:902:a386:b0:1bc:2c79:c6b5 with SMTP id x6-20020a170902a38600b001bc2c79c6b5mr2586229pla.4.1691599491603; Wed, 09 Aug 2023 09:44:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:50 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 14/15] eal: mark rte_eal_vfio_get_token stable Date: Wed, 9 Aug 2023 09:43:06 -0700 Message-Id: <20230809164312.308093-15-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 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 This API was added in 20.08 release. Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_eal.h | 4 ---- lib/eal/version.map | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/eal/include/rte_eal.h b/lib/eal/include/rte_eal.h index 53c4a5519e61..aac57665e6c2 100644 --- a/lib/eal/include/rte_eal.h +++ b/lib/eal/include/rte_eal.h @@ -412,16 +412,12 @@ int rte_eal_create_uio_dev(void); enum rte_intr_mode rte_eal_vfio_intr_mode(void); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice - * * Copy the user-configured vfio VF token. * * @param vf_token * vfio VF token configured with the command line is copied * into this parameter, zero uuid by default. */ -__rte_experimental void rte_eal_vfio_get_vf_token(rte_uuid_t vf_token); /** diff --git a/lib/eal/version.map b/lib/eal/version.map index 3b42d6e0e4c1..65435ae48696 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -89,6 +89,7 @@ DPDK_24 { rte_eal_tailq_lookup; rte_eal_tailq_register; rte_eal_using_phys_addrs; + rte_eal_vfio_get_vf_token; # WINDOWS_NO_EXPORT rte_eal_vfio_intr_mode; # WINDOWS_NO_EXPORT rte_eal_wait_lcore; rte_epoll_ctl; @@ -396,9 +397,6 @@ EXPERIMENTAL { rte_trace_regexp; # WINDOWS_NO_EXPORT rte_trace_save; # WINDOWS_NO_EXPORT - # added in 20.08 - rte_eal_vfio_get_vf_token; # WINDOWS_NO_EXPORT - # added in 20.11 __rte_eal_trace_generic_size_t; # WINDOWS_NO_EXPORT rte_cpu_get_intrinsics_support; # WINDOWS_NO_EXPORT From patchwork Wed Aug 9 16:43:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 130064 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 9D44F4301A; Wed, 9 Aug 2023 18:46:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 61130432A1; Wed, 9 Aug 2023 18:44:56 +0200 (CEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 2215143297 for ; Wed, 9 Aug 2023 18:44:54 +0200 (CEST) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1bc8a2f71eeso676745ad.0 for ; Wed, 09 Aug 2023 09:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1691599493; x=1692204293; 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=NYcswAlErVi1zp8nDGdDSPH3d97t8MZv29v7YIxQEck=; b=CGWx+627/kDgecLp7wKUUtawfN/BUEu32Aad6LRvbgVlmbp+pdo8gPrenAJvQRqGD4 3aeHvFhl4A7QPnKDRq5kZJZYJHzMWFvt/vA8VZgqKLS5VI8c9S/IBSUfgtbbDm/P833E BsP3nxQNaZhkHiLmfAKmmprU2UZb93VJooVKCZNFLdXMBkfOkFzQE3c31gUdOEGWiCsm +ADCMkvy4MZILyM99NOCxxXvnnFihAlk2g74fRD/Cd1pSuybBw4ppnz993qI1l/HTChS 3XvjEJTh5mVX2QGq4Wm1eGiiLCI2W/D3XHjUdwcInWKaOSO/COuGK5/thUEKWDr6vVaT U0eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691599493; x=1692204293; 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=NYcswAlErVi1zp8nDGdDSPH3d97t8MZv29v7YIxQEck=; b=gRZoLLi+L1PNpRYxErzBg/DihudjS4a1T1y/dIL66EBH2XTFVFg24nIAtXchlAtByU HIbUW1Svw4ssNfFLmtBmpeVcXdRWp4ct6PWVwqFN7r8186qxypHR0Z6lXfeclwwGaQ3/ 9QInfw8FT6ZwtIYIgd6Tqh0JqTeZocOWC9gt3o75aqjTYKpLbB5Hf6/ghngD8KSyemtV RyBcn7HL3P0Xzru6We6we4GhUaHDWi256kJfH7qwCsgdMcgRLG4agAz4ctxi1rvArt0D 5kyz1QEswh+Pu6BEZswC//+c0I3NuAeSeATwjIsWPpACJTFhc4rWEDtZ+EqLv0kbElXF I1cQ== X-Gm-Message-State: AOJu0Yy67aCSLLVZBzdcbmalvnG5KOXWQu4VFmh2V21D6P5GLiArbEEI Lsbr3h3fGlZsrIdkQliGe2/ak6HzSCcSzOn3SiMQJw== X-Google-Smtp-Source: AGHT+IEykedvnoV0vrRq/nMSnPeUDmww9K8pY52B782OD5rZZUWYiKfBdmEd2v+jSVRKtr2GhoUt8w== X-Received: by 2002:a17:902:e88a:b0:1bb:c0a6:2ee3 with SMTP id w10-20020a170902e88a00b001bbc0a62ee3mr3679870plg.26.1691599493112; Wed, 09 Aug 2023 09:44:53 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:44:52 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 15/15] eal: mark rte_vect simd bandwidth API as stable Date: Wed, 9 Aug 2023 09:43:07 -0700 Message-Id: <20230809164312.308093-16-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 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 back in 20.11. Signed-off-by: Stephen Hemminger --- lib/eal/include/generic/rte_vect.h | 8 -------- lib/eal/version.map | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/eal/include/generic/rte_vect.h b/lib/eal/include/generic/rte_vect.h index 3fec2bf1a2ec..bf541ce9d928 100644 --- a/lib/eal/include/generic/rte_vect.h +++ b/lib/eal/include/generic/rte_vect.h @@ -204,21 +204,14 @@ enum rte_vect_max_simd { }; /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Get the supported SIMD bitwidth. * * @return * uint16_t bitwidth. */ -__rte_experimental uint16_t rte_vect_get_max_simd_bitwidth(void); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Set the supported SIMD bitwidth. * This API should only be called once at initialization, before EAL init. * @@ -229,7 +222,6 @@ uint16_t rte_vect_get_max_simd_bitwidth(void); * - -EINVAL on invalid bitwidth parameter. * - -EPERM if bitwidth is forced. */ -__rte_experimental int rte_vect_set_max_simd_bitwidth(uint16_t bitwidth); #endif /* _RTE_VECT_H_ */ diff --git a/lib/eal/version.map b/lib/eal/version.map index 65435ae48696..d354b9966ce9 100644 --- a/lib/eal/version.map +++ b/lib/eal/version.map @@ -330,6 +330,8 @@ DPDK_24 { rte_uuid_is_null; rte_uuid_parse; rte_uuid_unparse; + rte_vect_get_max_simd_bitwidth; + rte_vect_set_max_simd_bitwidth; rte_version; rte_version_minor; rte_version_month; @@ -400,8 +402,6 @@ EXPERIMENTAL { # added in 20.11 __rte_eal_trace_generic_size_t; # WINDOWS_NO_EXPORT rte_cpu_get_intrinsics_support; # WINDOWS_NO_EXPORT - rte_vect_get_max_simd_bitwidth; - rte_vect_set_max_simd_bitwidth; # added in 23.03 rte_lcore_register_usage_cb;