From: Ferruh Yigit Subject: Re: [PATCH v2] net/tap: fix invalid queue file descriptor Date: Mon, 30 Jan 2017 21:23:17 +0000 Message-ID: References: <20170129021205.36860-1-keith.wiles@intel.com> <20170130205445.7527-1-ferruh.yigit@intel.com> <180E842F-5344-4E7D-B46E-6A58232A680F@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" To: "Wiles, Keith" Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D622B3237 for ; Mon, 30 Jan 2017 22:23:23 +0100 (CET) In-Reply-To: <180E842F-5344-4E7D-B46E-6A58232A680F@intel.com> 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 1/30/2017 8:57 PM, Wiles, Keith wrote: > >> On Jan 30, 2017, at 2:54 PM, Yigit, Ferruh wrote: >> >> From: Keith Wiles >> >> Rx and Tx queues share the common tap file descriptor, but save this >> value separately. >> >> Setting up Rx/Tx queue sets up both queues, release_queue close the >> tap file but update file descriptor only for that queue. >> >> This makes other queue's file descriptor invalid. >> >> As a workaround, prevent release_queue callback to be called by default. >> >> This is done by separating Rx/Tx setup functions, so that each only >> setup its own queue, this prevents rte_eth_rx/tx_queue_setup() calling >> release_queue before setup_queue. >> >> Signed-off-by: Keith Wiles >> Signed-off-by: Ferruh Yigit Applied to dpdk-next-net/master, thanks. (Just a reminder, defect still exists when app call rte_eth_rx/tx_queue_setup() multiple times)