From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.zx2c4.com (lists.zx2c4.com [165.227.139.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A328FD10F56 for ; Mon, 18 Nov 2024 02:40:43 +0000 (UTC) Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c5b80bd9; Mon, 18 Nov 2024 01:37:56 +0000 (UTC) Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id 434e68a9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 7 Oct 2024 17:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iogearbox.net; s=default2302; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=rNeJjWHR0x0soD8IDWMYjDsVxOWsQp0gDDBefvqbzBM=; b=PLPh7v5VA5eCdGogHSAC0ChFCI GkYDixeucqicVGJ9oOyHzrxHWtaHnRqLbgoUfDcs3cYOBSj05YbG7RrZCWmdd3Pg9xAmZ6eMTNCaw s6xxX7cWv4tofNziKjKcSYuileLz9fuBlUFes+9HsYTUVfpvhrIQkeUdac8QDMugP2TJqHDImr2yY iZQSKLvr1pqOWkvlENA6kActuS0v0UF7a1mKhmKB1FUD361ZcHY7h1tRYQftvmlGk+L4xENz/QvSQ hq7z6FUPaLrKQ8qR1Q/ot8DtHVk5MbwNTJZzfkquRzvQDqJcuq1Yokf+5DfBAaiUsDfZ9NF8CEaM4 lL0y7FEw==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www62.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxrry-000L7K-FQ; Mon, 07 Oct 2024 19:50:06 +0200 Received: from [78.155.22.211] (helo=[172.29.54.133]) by sslproxy01.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sxrrx-00059R-22; Mon, 07 Oct 2024 19:50:05 +0200 Message-ID: Date: Mon, 7 Oct 2024 19:50:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2] wireguard: Wire-up big tcp support To: "Jason A. Donenfeld" Cc: kuba@kernel.org, edumazet@google.com, aspsk@isovalent.com, m@lambda.lt, netdev@vger.kernel.org, wireguard@lists.zx2c4.com References: <20241004165518.120567-1-daniel@iogearbox.net> Content-Language: en-US From: Daniel Borkmann Autocrypt: addr=daniel@iogearbox.net; keydata= xsFNBGNAkI0BEADiPFmKwpD3+vG5nsOznvJgrxUPJhFE46hARXWYbCxLxpbf2nehmtgnYpAN 2HY+OJmdspBntWzGX8lnXF6eFUYLOoQpugoJHbehn9c0Dcictj8tc28MGMzxh4aK02H99KA8 VaRBIDhmR7NJxLWAg9PgneTFzl2lRnycv8vSzj35L+W6XT7wDKoV4KtMr3Szu3g68OBbp1TV HbJH8qe2rl2QKOkysTFRXgpu/haWGs1BPpzKH/ua59+lVQt3ZupePpmzBEkevJK3iwR95TYF 06Ltpw9ArW/g3KF0kFUQkGXYXe/icyzHrH1Yxqar/hsJhYImqoGRSKs1VLA5WkRI6KebfpJ+ RK7Jxrt02AxZkivjAdIifFvarPPu0ydxxDAmgCq5mYJ5I/+BY0DdCAaZezKQvKw+RUEvXmbL 94IfAwTFA1RAAuZw3Rz5SNVz7p4FzD54G4pWr3mUv7l6dV7W5DnnuohG1x6qCp+/3O619R26 1a7Zh2HlrcNZfUmUUcpaRPP7sPkBBL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yk//d0GrGnOrPA3Yyka8epd/bXA0js9EuNknyNsHwaFrW4jpGAaIl62iYgb0jCtmoK/ rCsv2dqS6Hi8w0s23IGjz51cdhdHzkFwuc8/WxI1ewacNNtfGnorXMh6N0g7E/r21pPeMDFs rUD9YI1Je/WifL/HbIubHCCdK8/N7rblgUrZJMG3W+7vAvZsOh/6VTZeP4wCe7Gs/cJhE2gI DmGcR+7rQvbFQC4zQxEjo8fNaTwjpzLM9NIp4vG9SDIqAm20MXzLBAeVkofixCsosUWUODxP owLbpg7pFRJGL9YyEHpS7MGPb3jSLzucMAFXgoI8rVqoq6si2sxr2l0VsNH5o3NgoAgJNIg= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.10/27420/Mon Oct 7 10:43:46 2024) X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" Hi Jason, On 10/7/24 6:42 PM, Jason A. Donenfeld wrote: > On Fri, Oct 04, 2024 at 06:55:18PM +0200, Daniel Borkmann wrote: >> Advertise GSO_MAX_SIZE as TSO max size in order support BIG TCP for wireguard. >> This helps to improve wireguard performance a bit when enabled as it allows >> wireguard to aggregate larger skbs in wg_packet_consume_data_done() via >> napi_gro_receive(), but also allows the stack to build larger skbs on xmit >> where the driver then segments them before encryption inside wg_xmit(). > > Thanks, I'll queue this up. Do you have any perf numbers on the speedup, > btw? Awesome, thanks! Few weeks back we had an LPC session with some initial work around wireguard performance (https://lpc.events/event/18/contributions/1968/) including benchmarks. It depends on the specific scenario, but this as well as an L2 GRO implementation (yet to come as patches in the next weeks) we got ~+15% for host-host in case of TCP STREAM. In case of Cilium I haven't done the measurement yet, but I expect that there would be further gains as bigger packets can traverse the stack and thus less processing in upper layers (e.g. our tcx BPF code). Thanks, Daniel