examples/ioat: handle failure case for ioat dequeue
[dpdk.git] / examples / ioat / ioatfwd.c
index 5e623a4..9fc033b 100644 (file)
@@ -457,7 +457,7 @@ ioat_tx_port(struct rxtx_port_config *tx_config)
                                MAX_PKT_BURST, NULL);
                }
 
-               if (nb_dq == 0)
+               if (nb_dq <= 0)
                        return;
 
                if (copy_mode == COPY_MODE_IOAT_NUM)