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;