From: Andrew Rybchenko Date: Fri, 19 Jun 2020 10:25:23 +0000 (+0100) Subject: net/sfc: reap Tx descriptors at least once X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ff49ac69d497b64ad2cf3cf5814addd6f5fbae36;p=dpdk.git net/sfc: reap Tx descriptors at least once Improve cache hit and increase packet rate on benchmarks. Signed-off-by: Andrew Rybchenko --- 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