From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH / RFC ] ethdev: Allow rte_eth_dev_configure with zero RX/TX queues Date: Thu, 20 Dec 2018 23:34:42 +0000 Message-ID: <79d212a9-7205-3852-3d06-650e9e7ab65b@intel.com> References: <20160516113349.7d2a992f@miho> <1881092.YNl14ETpPN@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Thomas Monjalon , dpdk-dev To: Simon Kagstrom Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 1A11D1BDAA for ; Fri, 21 Dec 2018 00:34:44 +0100 (CET) In-Reply-To: <1881092.YNl14ETpPN@xps13> 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 6/23/2016 4:53 PM, thomas.monjalon at 6wind.com (Thomas Monjalon) wrote: > 2016-05-16 11:33, Simon Kagstrom: >> This allows releasing RX/TX queue memory. >> --- >> We're using DPDK 16.04 and have a test suite which performs a sequence >> of separate tests of the type >> >> allocate mempool >> rte_eth_dev_configure(port, n_rxq, n_txq, ...) >> setup rx/tx queues >> rte_eth_dev_start(port) >> >> >> >> stop rx/tx queues >> rte_eth_dev_stop(port) >> >> -> rte_eth_dev_configure(port, 0, 0, ...) >> >> check that there are no leaks from the mempool >> >> The crucial point is the marked line above. This is done so that the >> rx_queue_release/tx_queue_release callbacks in the PMD is called, so >> that mbufs allocated by the driver is released. > > I think you are trying to use a side effect of rte_eth_dev_configure(). > After calling rte_eth_dev_stop(), I would say the clean-up should be done > by rte_eth_dev_close(). > Why not using close? > Hi Simon, This patch is in patchwork for a long time without response, updating its status as rejected, if it is still relevant please let us know.