From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C77C3A04B1; Mon, 5 Oct 2020 19:08:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 68C271B222; Mon, 5 Oct 2020 19:08:32 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by dpdk.org (Postfix) with ESMTP id F003A37B7 for ; Mon, 5 Oct 2020 19:08:29 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id A4FF8147F; Mon, 5 Oct 2020 13:08:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 05 Oct 2020 13:08:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=ySIvr7e83aVJ5 jBzSCmhDDoyRKgg4nJ+0SQm5eOYA4Q=; b=pPiNu/z31zCWTGS+MHEQNn3XUFhoU 3LNsl2ZfNcZjAqvA7Hg6XltDSP/L6tG9gRCk74zOrI9gMZ5OZ+M/y4utgmhPkPV3 WXuu8D0ONkDEN1qmCdGx+FpFxB5Hn8rGEfgbtCMqAFeZY0Y4f9y4+4DklJ4U4TxI Z6Ro+PNfxCp3HVlvBZ4ad8E9qYxFU3w9bSBynBOlOKBRkjw+ejg7Ea5EOAqzo/0q 3vIugS86yfu7CJCaE+y9WHBLjaq3CZABVO4UwuWKNMtv1LqieuBRwVupmtlekNvD 57sC+Admk6MYZRhd4SHHI2Ng13W8TIjLeSRcCeDGqU3zj0LwE5YS/eDGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=ySIvr7e83aVJ5jBzSCmhDDoyRKgg4nJ+0SQm5eOYA4Q=; b=Y4qx4P9T jt/j6DDA4gf5Sm6kjHjgAIcbRcJ8YRkVJHviyAptoimEu13yJdRqUnOW7raTxIck hhk+EThmIwSWJOee5HffYu8HLJemvdeBQg9q4tKoUEbcbo/z2HILW24QrEPWLXVg 6IoNQ08FlK86LAs2deDdX1b4iDcMqCEBUG0wN9ZbjXBlWYu7spSiaWiNldunQlTJ A5UIV7ymZu81wyuOnHCHR4OXeaopEbK9cQxi1sRlQXpy0FLPbVzse4CBzd1MzOff v0sSnkuEDkLdrvpMQgjJN5S91/h2Q2o2pq4oLgVNEAxihPPuDsTN2tZ5mnU9RYgi scu51us660wrnQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgedvgdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 38570328005A; Mon, 5 Oct 2020 13:08:26 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: ferruh.yigit@intel.com, arybchenko@solarflare.com Date: Mon, 5 Oct 2020 19:08:16 +0200 Message-Id: <20201005170820.1018715-1-thomas@monjalon.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200913220711.3768597-1-thomas@monjalon.net> References: <20200913220711.3768597-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/3] cleanup ethdev close operation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Most of the patches from the v3 have been merged already. The remaining 3 patches are reworked in this v4: - reset dev_started in some PMDs - selectively reset pointers in rte_eth_dev_release_port() - fix error handling Thomas Monjalon (3): ethdev: remove forcing stopped state upon close ethdev: reset all when releasing a port ethdev: allow close function to return an error doc/guides/rel_notes/deprecation.rst | 1 - doc/guides/rel_notes/release_20_11.rst | 4 +++- drivers/net/ark/ark_ethdev.c | 4 +--- drivers/net/atlantic/atl_ethdev.c | 5 +---- drivers/net/axgbe/axgbe_ethdev.c | 3 --- drivers/net/bnxt/bnxt_ethdev.c | 4 ---- drivers/net/bnxt/bnxt_reps.c | 1 - drivers/net/bonding/rte_eth_bond_pmd.c | 4 ---- drivers/net/cxgbe/cxgbe_ethdev.c | 5 +++-- drivers/net/cxgbe/cxgbevf_ethdev.c | 5 +++-- drivers/net/dpaa/dpaa_ethdev.c | 5 +---- drivers/net/dpaa2/dpaa2_ethdev.c | 4 ---- drivers/net/e1000/em_ethdev.c | 6 ++---- drivers/net/e1000/igb_ethdev.c | 9 +-------- drivers/net/ena/ena_ethdev.c | 6 +----- drivers/net/enetc/enetc_ethdev.c | 1 + drivers/net/failsafe/failsafe_ether.c | 6 +++++- drivers/net/failsafe/failsafe_ops.c | 25 ++++++++++++++++-------- drivers/net/fm10k/fm10k_ethdev.c | 5 +---- drivers/net/hinic/hinic_pmd_ethdev.c | 6 ++---- drivers/net/hns3/hns3_ethdev.c | 5 +---- drivers/net/hns3/hns3_ethdev_vf.c | 6 +----- drivers/net/i40e/i40e_ethdev.c | 5 +---- drivers/net/i40e/i40e_ethdev_vf.c | 6 +----- drivers/net/iavf/iavf_ethdev.c | 5 +---- drivers/net/ice/ice_dcf_ethdev.c | 4 ---- drivers/net/ice/ice_ethdev.c | 5 +---- drivers/net/igc/igc_ethdev.c | 1 + drivers/net/ionic/ionic_ethdev.c | 5 ----- drivers/net/ixgbe/ixgbe_ethdev.c | 9 +-------- drivers/net/kni/rte_eth_kni.c | 1 + drivers/net/liquidio/lio_ethdev.c | 5 +---- drivers/net/memif/rte_eth_memif.c | 4 +--- drivers/net/mlx5/mlx5.c | 7 ++++--- drivers/net/mvneta/mvneta_ethdev.c | 7 +++++-- drivers/net/mvpp2/mrvl_ethdev.c | 5 +++-- drivers/net/netvsc/hn_ethdev.c | 11 +++++------ drivers/net/netvsc/hn_var.h | 2 +- drivers/net/netvsc/hn_vf.c | 7 +++++-- drivers/net/nfb/nfb_ethdev.c | 2 ++ drivers/net/octeontx/octeontx_ethdev.c | 3 --- drivers/net/pfe/pfe_ethdev.c | 2 ++ drivers/net/qede/qede_ethdev.c | 5 +---- drivers/net/ring/rte_eth_ring.c | 1 + drivers/net/sfc/sfc_ethdev.c | 7 +------ drivers/net/szedata2/rte_eth_szedata2.c | 2 ++ drivers/net/tap/rte_eth_tap.c | 1 - drivers/net/thunderx/nicvf_ethdev.c | 1 + drivers/net/vhost/rte_eth_vhost.c | 1 + drivers/net/virtio/virtio_ethdev.c | 5 +---- drivers/net/virtio/virtio_user_ethdev.c | 4 +--- drivers/net/vmxnet3/vmxnet3_ethdev.c | 6 +----- lib/librte_ethdev/rte_ethdev.c | 26 +++++++++++++++++++------ lib/librte_ethdev/rte_ethdev.h | 5 ++++- 54 files changed, 114 insertions(+), 166 deletions(-) -- 2.28.0