From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 9962C2BE5 for ; Thu, 2 Feb 2017 17:18:22 +0100 (CET) Received: from 6wind.com (unknown [10.16.0.184]) by proxy.6wind.com (Postfix) with SMTP id 4BB9A24CF6; Thu, 2 Feb 2017 17:18:17 +0100 (CET) Received: by 6wind.com (sSMTP sendmail emulation); Thu, 02 Feb 2017 17:18:15 +0100 From: Pascal Mazon To: keith.wiles@intel.com Cc: dev@dpdk.org, Pascal Mazon Date: Thu, 2 Feb 2017 17:18:00 +0100 Message-Id: X-Mailer: git-send-email 2.8.0.rc0 In-Reply-To: <1485855778-15496-1-git-send-email-pascal.mazon@6wind.com> References: <1485855778-15496-1-git-send-email-pascal.mazon@6wind.com> In-Reply-To: <050aa06c03aa4b56f703d74a8d8a792de5e075f4.1486026370.git.pascal.mazon@6wind.com> References: <050aa06c03aa4b56f703d74a8d8a792de5e075f4.1486026370.git.pascal.mazon@6wind.com> Subject: [dpdk-dev] [PATCH v2 3/7] net/tap: don't set fd value overwritten just below 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: , X-List-Received-Date: Thu, 02 Feb 2017 16:18:22 -0000 pmd->fds[0], pmd->rxq[0] and pmd->txq[0] are set a couple of lines after the for loop that initializes them to -1. Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 4cc1767da5e8..3d15031008c6 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -643,7 +643,7 @@ eth_dev_tap_create(const char *name, char *tap_name) } /* Presetup the fds to -1 as being not working */ - for (i = 0; i < RTE_PMD_TAP_MAX_QUEUES; i++) { + for (i = 1; i < RTE_PMD_TAP_MAX_QUEUES; i++) { pmd->fds[i] = -1; pmd->rxq[i].fd = -1; pmd->txq[i].fd = -1; -- 2.8.0.rc0