summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-06-10 18:31:55 -0400
committerDave Barach <dave@barachs.net>2016-06-10 18:32:08 -0400
commitb3ca6589eb58dcb15fdd7939694a4024e63b7ec5 (patch)
treea7ff20bf31a04f4789d0f9d6ed97bc397d181cc3
parent902474657dbc33b85aae1d0fe2c5b8f345d4d601 (diff)
Return 0 if no tap interfaces are ready
Otherwise, if tapcli-rx manages to make it into polled-mode, it will never leave polled mode. This has been wrong since day 1, sometime in early 2013. Change-Id: I124e01a48db5abbc4eb5240c8d59f76dc562e9f2 Signed-off-by: Dave Barach <dave@barachs.net>
-rw-r--r--vnet/vnet/unix/tapcli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/unix/tapcli.c b/vnet/vnet/unix/tapcli.c
index 1d5beba1b78..7856b05751f 100644
--- a/vnet/vnet/unix/tapcli.c
+++ b/vnet/vnet/unix/tapcli.c
@@ -369,7 +369,7 @@ tapcli_rx (vlib_main_t * vm,
}));
if (vec_len (ready_interface_indices) == 0)
- return 1;
+ return 0;
for (i = 0; i < vec_len(ready_interface_indices); i++)
{