]> git.proxmox.com Git - ovs.git/commitdiff
netdev-dpdk: Fix additional vhost tx retry.
authorKevin Traynor <ktraynor@redhat.com>
Thu, 27 Jun 2019 11:12:29 +0000 (12:12 +0100)
committerIan Stokes <ian.stokes@intel.com>
Fri, 28 Jun 2019 08:49:32 +0000 (09:49 +0100)
Fix minor issue of one possible additional retry.

Fixes: c6ec9d176dbf ("netdev-dpdk: Fix vHost stats.")
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/netdev-dpdk.c

index 0b9bea405e694cc9e5bb8d0646f307d00ddbfc87..a380b6ffefd46cc8c65b2d99e52b064056e135a6 100644 (file)
@@ -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);