From: Ferruh Yigit Subject: Re: [PATCH] net/ena: remove resources when port is being closed Date: Fri, 2 Nov 2018 20:35:59 +0000 Message-ID: References: <20181031145316.7448-1-mk@semihalf.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org To: Michal Krawczyk , mw@semihalf.com, matua@amazon.com, gtzalik@amazon.com, zorik@amazon.com Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 953A25F1F for ; Fri, 2 Nov 2018 21:36:02 +0100 (CET) In-Reply-To: <20181031145316.7448-1-mk@semihalf.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/31/2018 2:53 PM, Michal Krawczyk wrote: > The new API introduced in 18.11 is suggesting, that the driver should > release all it's resources at the dev_close routine. > > All resources previously released in uninit routine during PCI removal, > are now being released at the dev_close and the PMD is indicating that > it is supporting API changes by setting RTE_ETH_DEV_CLOSE_REMOVE flag. > > As the device is not allocating MAC addresses dynamically, it is setting > mac_addrs field to NULL, so it wouldn't be released by the > rte_eth_dev_release_port(). > > Signed-off-by: Michal Krawczyk Applied to dpdk-next-net/master, thanks.