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 62EC3A04B7; Tue, 13 Oct 2020 12:06:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1BC1B1DA5F; Tue, 13 Oct 2020 12:06:46 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 14FD21DA32 for ; Tue, 13 Oct 2020 12:06:43 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id AA20C5C0112; Tue, 13 Oct 2020 06:06:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 13 Oct 2020 06:06:39 -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=/KVW3Ec7+jN1l eqaE3/gHyqgNfYJParVqYBGy9TLHno=; b=J6GkS4bJjhT+HxQiaVStEpUpivXKe 4E37C7bWxCWTwMtraUl0xUnkg5GUCJcA3lz7QDOfw30t/U42HUZ2JerqInt5MXIn iXwpshpHfRTQIMeQxn7/4rPLtqgx3aw64jjwindNOloFY07yrL1yXdhLDUpk8qKN mNSi50aoNaRh4GWiKOYUFgD9uqY98xRFDJs4MZdbPelcJgYwFVaRld4xjUjyZedy J0lDgm1Zk60/MkOxlmU4gMG/zHGBqcYfXfUI2anTcDXjBuvORBGYFtyrVCxCAJBu L5c13SxRGY7XjBiUVCRB6QkVlyc4nxaAHAR+OH5obGaxoEtiXg8ajTuXQ== 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=/KVW3Ec7+jN1leqaE3/gHyqgNfYJParVqYBGy9TLHno=; b=Gj3lyRP1 VeYc6IB8t0l+9yOeMoPm3f76wFztM0CBSTgi330BwgqqgZ49FNbSFxnm3wwLp3LH FBAYsne8jIc6VP/BXXmNOuJTniN9AWFEpTUDcQLscHlGuDEPJ0Z2QagyBQ/cwm6V 2DB2aq/UUw1gcyqStYLcNH8+jtBUWYOkiNuZOHYgpazHRmxjmDiC8ehCEN+Sw6cQ HGfTNacuGoVjhml2DxPZsj8zz531nyoX7fB3ntHkvklHvFthWL9dQ8yMQvG2lNSF mqDkjUkV323bQRU1WAq8iA3J9VNRj6fLQaJdCAcOylidy3vPm8Yoqj/DXft+zUGi o4GruLuXGmS2AQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrheelgddvgecutefuodetggdotefrodftvf 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 D90EC3064685; Tue, 13 Oct 2020 06:06:38 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: ferruh.yigit@intel.com, arybchenko@solarflare.com Date: Tue, 13 Oct 2020 12:06:31 +0200 Message-Id: <20201013100634.2482593-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 v5 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 v5: change error code to ENODEV if wrong port id 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