]> 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:54 +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 d8dc5d4af5e298db6ff25e4465b93cc38ce5f720..20be56bc6c0b6c0f9a2e2e258708ed990e6b668e 100644 (file)
@@ -2354,7 +2354,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);