aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-01-07 13:40:17 +0100
committerDamjan Marion <dmarion@me.com>2020-01-14 15:49:10 +0000
commit207a1633094526697729f322269b937f841aaf47 (patch)
tree8c10bfd2b1e40d512b17f17e932b1bf61c27764f
parentfec52edb3c64ca4c725669ce432120a605a86f6a (diff)
dpdk: enforce max tx retries
n_retry was never decremented and so never enforced. Type: fix Change-Id: I71d60a72c156286f7e5b82b1c77a723361317c69 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/plugins/dpdk/device/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c
index 3b41e93e01a..323149043a5 100644
--- a/src/plugins/dpdk/device/device.c
+++ b/src/plugins/dpdk/device/device.c
@@ -199,6 +199,7 @@ static_always_inline
{
/* no wrap, transmit in one burst */
n_sent = rte_eth_tx_burst (xd->port_id, queue_id, mb, n_left);
+ n_retry--;
}
else
{