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 388BAA04DB; Fri, 16 Oct 2020 15:33:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8EA201EE17; Fri, 16 Oct 2020 15:33:13 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by dpdk.org (Postfix) with ESMTP id E5C1A1EE14 for ; Fri, 16 Oct 2020 15:33:11 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 9B3F7A5D; Fri, 16 Oct 2020 09:33:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 16 Oct 2020 09:33:09 -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=70VrPu5j06O+l jfz2ukI3Sjtg6xBfFQQP+bh4WPxFC0=; b=mPzmpQhR3UxYjJzrs1Yu6W4dVof15 nJrKGA6+HAFzgQaAmOxn4kWglFfTyJX7/CziDuiPTepiaoQALcdTdolXM2HdoacW Kr3aFN1UjJLdH1WHasmJn4qFk0OiNf7AqV792cqMMp8SZpDH3h4XcNSxh5Y9sxMo /JamlrdkYHmJBuG9K3HPQAVs+Wb5PeOKl5NEjtXqs2vh6E84JzARaz6NhdmpFP4v Ez+YlT6cLDHL2pS+wNhd0Zw1L5ug13MvxM1Bcmh35eSIeV6QUfMU1VpqPur/Ho2D a3y0o17gL9ctLnnByorPdS7AZpLuEZyHOc1Emw95xEmEdtUZ6/wG42hTw== 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=70VrPu5j06O+ljfz2ukI3Sjtg6xBfFQQP+bh4WPxFC0=; b=bpUg5Rlx avdQmBR7JAQahaAVEEmpTUInL8vMqR47xHDTTfb9aCe/h1uYNfW2lAuBdi4lpP+a Eb/bns3un0SrWghMTBmXbnO4uJR32L0v1o0gukU+lVmnp5kTfVGd9/5JkPNpaSYa AmRFOIoJL6NZ8DiYS2Zz/vxyd3KtFK3+8JhqheCSb8azL4UWb/bd1DHZfPmB2PkR vzQ4g4si8q0d8iyzUACaqy18Ot7JeCl99ht989qVMtZ7pjriPCh6fllZUl36v9Cu 8RFeopdjIwTfdx5/FaeRxUoDae2rAVSO3SgPVhufrWfQjLkLlG267+wmXp8zRUkp fT+p41b5qHPRGQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrieehgdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdehgfeivdejgedtveehfe fhteelfefgieevgfffveefjeegtdfguedthedtgeevnecukfhppeejjedrudefgedrvddt fedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght 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 22D36306467D; Fri, 16 Oct 2020 09:33:08 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: ferruh.yigit@intel.com, andrew.rybchenko@oktetlabs.ru Date: Fri, 16 Oct 2020 15:32:56 +0200 Message-Id: <20201016133259.3061153-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 v6 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 v4: - reset dev_started in some PMDs - selectively reset pointers in rte_eth_dev_release_port() - fix error handling v5: change error code to ENODEV if wrong port id v6: - use eth_err() in rte_eth_dev_close() - fix missed igbvf and ixgbevf 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 | 10 ++-------- 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 | 10 ++-------- 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, 116 insertions(+), 166 deletions(-) -- 2.28.0