From 207a1633094526697729f322269b937f841aaf47 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Tue, 7 Jan 2020 13:40:17 +0100 Subject: dpdk: enforce max tx retries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit n_retry was never decremented and so never enforced. Type: fix Change-Id: I71d60a72c156286f7e5b82b1c77a723361317c69 Signed-off-by: Benoît Ganne --- src/plugins/dpdk/device/device.c | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit 1.2.3-korg