net/sfc: reap Tx descriptors on transmit at least once
Checks
Commit Message
Improve cache hit and increase packet rate on benchmarks.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
drivers/net/sfc/sfc_tweak.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 6/19/2020 11:25 AM, Andrew Rybchenko wrote:
> Improve cache hit and increase packet rate on benchmarks.
>
> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Applied to dpdk-next-net/master, thanks.
@@ -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