diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/memif/node.c | 5 |
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); |