From patchwork Thu Oct 28 08:35:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 103130 X-Patchwork-Delegate: ferruh.yigit@amd.com 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 8A5EFA0C45; Thu, 28 Oct 2021 10:35:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79BCD41120; Thu, 28 Oct 2021 10:35:24 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 860C7410F7 for ; Thu, 28 Oct 2021 10:35:23 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 39A465C01B0; Thu, 28 Oct 2021 04:35:22 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 28 Oct 2021 04:35:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=sQRVv6zxdnQ7vDkCwYcokf3ker tfl0wBHFVAkwItr5s=; b=NtJZ6GKOld/ZG10dNQr1zVQwRPhhctJMxZzfxZWlFW u3vOYjhElvnUxbyzF7t6ORn0q0ENeL8F6PLXaLaltZ7bq13jCfWVqlAB34KjwCEY PtLqIFAy+s9GdgrXj8u4fF66YaDj6jyh1IPqU0/TMX4zy1stSATY+JwfGt6Wh7J2 FbjRU+eK0NeKGAwOY98Jwm+W2hEcsnY3BuWebtkD5VXwqMLRvoK8nKILwNaRVGN4 m9SUuXbIVOSsPtu0ohQbYb8WZanblKRZEZ0kGaHnc3PYi2Em2MkruFBCxFtUYiT3 fjgFV4qbuhPFHMRF0IrVJgfTAHzpy8IU5dgmN2FlPKrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=sQRVv6zxdnQ7vDkCw Ycokf3kertfl0wBHFVAkwItr5s=; b=kASp/ufxfJ2zHzrh3ew5mpxEOgsKOhfJz hwzAqWA4q4GBtw6KfNxDICloww9619YCS1wHQJj1OWEnVayeggywDQBfueu0Oe5J 4/fLmzS3BR5++gVcf9CbuQdAWgpiRLiWtxl0B3L2NjttyXngbdkjpBIXnacnw3r+ wT4Hj6NuKy0wzczBOasmL+XS9aRess9yOnrJzJYbRR0wrUPV8CUWXO0J7a61lsT3 yfD8FhbIm2LnoQvN/OpzozsgsvCWifZ0h8pibd02t5dnQ4TAZcPWPiHHkT1FiKCS LrdGd4HhfK8of4xMOkphb2t88cZHY33XaqZz1MvvEPaQ172BSinFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdegvddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgrshcu ofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuggftrf grthhtvghrnhepvdelvdduhedvudduveeuvdevheegudelgeeigfejheduhedttdegudff jeeihffgnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomh epthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Oct 2021 04:35:21 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: matan@nvidia.com, Ferruh Yigit , Andrew Rybchenko , Ray Kinsella Date: Thu, 28 Oct 2021 10:35:13 +0200 Message-Id: <20211028083513.3024352-1-thomas@monjalon.net> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] ethdev: promote device removal check function as stable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The function rte_eth_dev_is_removed() was introduced in DPDK 18.02, and is integrated in error checks of ethdev library. It is promoted as stable ABI. Signed-off-by: Thomas Monjalon Acked-by: Ray Kinsella Acked-by: Andrew Rybchenko Acked-by: Ferruh Yigit --- lib/ethdev/rte_ethdev.h | 4 ---- lib/ethdev/version.map | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index 24f30b4b28..09d60351a3 100644 --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -2385,9 +2385,6 @@ int rte_eth_dev_configure(uint16_t port_id, uint16_t nb_rx_queue, uint16_t nb_tx_queue, const struct rte_eth_conf *eth_conf); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Check if an Ethernet device was physically removed. * * @param port_id @@ -2395,7 +2392,6 @@ int rte_eth_dev_configure(uint16_t port_id, uint16_t nb_rx_queue, * @return * 1 when the Ethernet device is removed, otherwise 0. */ -__rte_experimental int rte_eth_dev_is_removed(uint16_t port_id); diff --git a/lib/ethdev/version.map b/lib/ethdev/version.map index e1abe99729..c2fb0669a4 100644 --- a/lib/ethdev/version.map +++ b/lib/ethdev/version.map @@ -31,6 +31,7 @@ DPDK_22 { rte_eth_dev_get_supported_ptypes; rte_eth_dev_get_vlan_offload; rte_eth_dev_info_get; + rte_eth_dev_is_removed; rte_eth_dev_is_valid_port; rte_eth_dev_logtype; rte_eth_dev_mac_addr_add; @@ -148,7 +149,6 @@ EXPERIMENTAL { rte_mtr_stats_update; # added in 18.02 - rte_eth_dev_is_removed; rte_eth_dev_owner_delete; rte_eth_dev_owner_get; rte_eth_dev_owner_new;