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 B11EAA0613 for ; Fri, 27 Sep 2019 11:53:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4DC721BEA1; Fri, 27 Sep 2019 11:53:01 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 149EC1BE98 for ; Fri, 27 Sep 2019 11:52:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2019 02:52:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,555,1559545200"; d="scan'208";a="219722060" Received: from intel.sh.intel.com ([10.239.255.149]) by fmsmga002.fm.intel.com with ESMTP; 27 Sep 2019 02:52:53 -0700 From: Di ChenxuX To: dev@dpdk.org Cc: qiming.yang@intel.com, Di ChenxuX Date: Fri, 27 Sep 2019 09:09:43 +0000 Message-Id: <20190927090948.32909-1-chenxux.di@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190827050142.16010-1-chenxux.di@intel.com> References: <20190827050142.16010-1-chenxux.di@intel.com> Subject: [dpdk-dev] [PATCH v7 0/5] drivers/net: release port upon close 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" Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private resources for the port can be freed by rte_eth_dev_close(). This patch cover all the intel drivers. --- V7 changes: Modified code on the last commit. V6 changes: Fixed check error. V5 changes: Added code in em_ethdev.c. Separated the release note, each patch has its own note. V4 changes: Removed adaper stopped flag in function ice_dev_init. V3 changes: Removed adapter closed flag in driver e1000, fm10k, ice, ixgbe. V2 changes: Separated to 5 patches, each patch only change one driver. Added resource release in dev_close. Acked-by: Qiming Yang Series Reviewed-by: Xiaolong Ye Di ChenxuX (5): net/e1000: release port upon close net/fm10k: release port upon close net/i40e: release port upon close net/ice: release port upon close net/ixgbe: release port upon close doc/guides/rel_notes/release_19_11.rst | 18 +++ drivers/net/e1000/em_ethdev.c | 33 ++--- drivers/net/e1000/igb_ethdev.c | 144 ++++++++++----------- drivers/net/fm10k/fm10k_ethdev.c | 100 ++++++++------- drivers/net/i40e/i40e_ethdev.c | 128 +++++++++---------- drivers/net/i40e/i40e_ethdev_vf.c | 25 ++-- drivers/net/ice/ice_ethdev.c | 30 +++-- drivers/net/ixgbe/ixgbe_ethdev.c | 167 +++++++++++++------------ 8 files changed, 335 insertions(+), 310 deletions(-) -- 2.17.1