summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/memif/node.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c
index 2d7b71fa20a..40dcf682798 100644
--- a/src/plugins/memif/node.c
+++ b/src/plugins/memif/node.c
@@ -534,7 +534,10 @@ memif_device_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node,
}
if (n_slots == 0)
- goto refill;
+ {
+ ptd->n_packets = 0;
+ goto refill;
+ }
n_desc = memif_parse_desc (ptd, mif, mq, cur_slot, n_slots);