From: Pascal Mazon Date: Thu, 2 Feb 2017 16:18:00 +0000 (+0100) Subject: net/tap: skip overwritten file descriptor assignment X-Git-Tag: spdx-start~4553 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=455c14e974308753cab94b5e5f91a26ae8549879;p=dpdk.git net/tap: skip overwritten file descriptor assignment 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 Acked-by: Keith Wiles --- diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 07c83377a1..8811716c7e 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -644,7 +644,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;