summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-01-07 13:40:17 +0100
committerDave Wallace <dwallacelf@gmail.com>2020-08-12 15:28:04 +0000
commit029b8c8ee8a6233371aa9a8980d5a6af39c5aacd (patch)
treefd50a4ce7652e600c43058e99d0f208cf06fa848 /src/plugins
parent251c1e73e1e449023d25576905dbd05583e32072 (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> (cherry picked from commit 207a1633094526697729f322269b937f841aaf47)
Diffstat (limited to 'src/plugins')
-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 cb0448fa503..c64ea6b2e81 100644
--- a/src/plugins/dpdk/device/device.c
+++ b/src/plugins/dpdk/device/device.c
@@ -177,6 +177,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
{