diff options
-rw-r--r-- | src/plugins/memif/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/memif/device.c b/src/plugins/memif/device.c index 5f670563fcb..3809061e434 100644 --- a/src/plugins/memif/device.c +++ b/src/plugins/memif/device.c @@ -176,6 +176,7 @@ memif_interface_tx_inline (vlib_main_t * vm, vlib_node_runtime_t * node, if (tx_queues < vec_len (vlib_mains)) { + ASSERT (tx_queues > 0); qid = thread_index % tx_queues; clib_spinlock_lock_if_init (&mif->lockp); } |