From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9552BA0518; Fri, 19 Jun 2020 12:25:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 98DFB1BE80; Fri, 19 Jun 2020 12:25:32 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 4EC751B9B7 for ; Fri, 19 Jun 2020 12:25:30 +0200 (CEST) Received: from mx1-us1.ppe-hosted.com (unknown [10.110.50.143]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id C022220088 for ; Fri, 19 Jun 2020 10:25:29 +0000 (UTC) Received: from us4-mdac16-45.at1.mdlocal (unknown [10.110.48.16]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id BF0F08009B for ; Fri, 19 Jun 2020 10:25:29 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.50.9]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 65CDA40061 for ; Fri, 19 Jun 2020 10:25:29 +0000 (UTC) Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 2F38A580055 for ; Fri, 19 Jun 2020 10:25:29 +0000 (UTC) Received: from ukex01.SolarFlarecom.com (10.17.10.4) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 19 Jun 2020 11:25:25 +0100 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 19 Jun 2020 11:25:25 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (ukv-loginhost.uk.solarflarecom.com [10.17.10.39]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 05JAPPeo004981 for ; Fri, 19 Jun 2020 11:25:25 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id 81EDA161798 for ; Fri, 19 Jun 2020 11:25:25 +0100 (BST) From: Andrew Rybchenko To: Date: Fri, 19 Jun 2020 11:25:23 +0100 Message-ID: <1592562323-22694-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1020-25490.003 X-TM-AS-Result: No-2.139200-8.000000-10 X-TMASE-MatchedRID: 0sS0L/mwt9ivgAL0VY7p2jz0OdhUGRO0ojQrbrPpzzrUIhOgP/0JxciT Wug2C4DNVpwg3nKm24ibHAuQ1dUnuWJZXQNDzktSdPuue3cRiRjRlAnyzeovGaRea8wUAdQ67sk Zw3lfGYu4AfadfvF392Fmg4aAOjOwr78SC5iivxwURSScn+QSXmMVPzx/r2cb+gtHj7OwNO2Ohz Oa6g8KrbfrkJhtvHSwfX+UgVxsovPdpqZmETmhNyqFGw97uAyIwMPzQD8AO7u1sXy5i6dURgHYz JHavjrODeKre7C7KHDeQEhf8+n5PjcjwNTI6hp5T7Ak0q8bodDU82SjOFFjcdQ1HcCHDEjssBe1 /5+PapuUTGVAhB5EbQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--2.139200-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1020-25490.003 X-MDID: 1592562329-UbgK1zF9r6r8 Subject: [dpdk-dev] [PATCH] net/sfc: reap Tx descriptors on transmit at least once X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.17.1