git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f48a8d6
)
net/tap: skip overwritten file descriptor assignment
author
Pascal Mazon
<pascal.mazon@6wind.com>
Thu, 2 Feb 2017 16:18:00 +0000
(17:18 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:49 +0000
(12:25 +0100)
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 <pascal.mazon@6wind.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c
patch
|
blob
|
history
diff --git
a/drivers/net/tap/rte_eth_tap.c
b/drivers/net/tap/rte_eth_tap.c
index
07c8337
..
8811716
100644
(file)
--- 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;