netdev-dpdk: Fix additional vhost tx retry.
Fix minor issue of one possible additional retry.
Fixes: ("netdev-dpdk: Fix vHost stats.")
Acked-by: Eelco Chaudron
Acked-by: Flavio Leitner
@@ -2373,7 +2373,7 @@ __netdev_dpdk_vhost_send(struct netdev *netdev, int qid,
/* No packets sent - do not retry.*/
break;
}
- } while (cnt && (retries++ <= VHOST_ENQ_RETRY_NUM));
+ } while (cnt && (retries++ < VHOST_ENQ_RETRY_NUM));
rte_spinlock_unlock(&dev->tx_q[qid].tx_lock);
