From ff49ac69d497b64ad2cf3cf5814addd6f5fbae36 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Fri, 19 Jun 2020 11:25:23 +0100 Subject: [PATCH] net/sfc: reap Tx descriptors at least once Improve cache hit and increase packet rate on benchmarks. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_tweak.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_tweak.h b/drivers/net/sfc/sfc_tweak.h index bd3de5313a..426e48f593 100644 --- a/drivers/net/sfc/sfc_tweak.h +++ b/drivers/net/sfc/sfc_tweak.h @@ -26,7 +26,7 @@ * this improves cache locality because the same mbufs may be used to send * subsequent bursts in certain cases because of well-timed reap */ -#define SFC_TX_XMIT_PKTS_REAP_AT_LEAST_ONCE 0 +#define SFC_TX_XMIT_PKTS_REAP_AT_LEAST_ONCE 1 /** Default free threshold follows recommendations from DPDK documentation */ #define SFC_TX_DEFAULT_FREE_THRESH 32 -- 2.20.1