Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp268034ybl; Thu, 12 Dec 2019 17:59:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwkOV6Pi3Fjr1f21XPhEfnd1aMszZsNIhiI3hdzGIQv4TQ1+V4nhJ0+yFdlBPg4QNeXnrLP X-Received: by 2002:a05:6830:4a4:: with SMTP id l4mr11921774otd.91.1576202356701; Thu, 12 Dec 2019 17:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576202356; cv=none; d=google.com; s=arc-20160816; b=elUhOUQc+YgDpKjWK6bE0bbMpncch8m72tUCvgv46CltAKlLabOX7bCnnxT8gN6Jdc dCkOb/iOrezxIoHg6KDTI5yjvBylSzssdqN2lZSgXfEwOGAZp2CVxv0wZfS7zxiMO1sD JY+9EF5xidai++UF+WFOUoqzpxV3f0juoc9sY9bUxb1+Tp+EWPo1AoihnzmNg57wHc8F 4SPX2uWEiwyKo7ah3WU6jTYMAggKukvQdbXbkUt7SF1U44ULJi99Swjbs9GvCgCIGx2w /bITsNMDLYmMUsN9GQDulFZ237ytAOzAcRHV285/zXRCyhpEs/NTJkJBrTQIfZEL7SYZ CfbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=qYizareoqdt2jQrW4V3ebWxd/NiWZ0tLiqk+Wc08VwU=; b=gW5/BeCvI+dzUCYdjMZga7CE9Af7Edrgy0b7tG9sfLZwF3+ZIs1oiLn8rkCcRqsXUz iCFfx6g/TU/lUqMNBou3zAubvdgoXlNO/AlrjNH6TAeziLALlp1hqW2QUJ1T3uI7GweV xAI1kit36grr6sdubKv39TrFHBvcCuslSll9JgURHudEwM7wSwNGwVIUwwpoqCupkank Bl1ub5oM2SqvXJdfMnHJY4Z2/D7QzeZsTqNinNCUam0uNN+YM2TstLEWMhrG3XUASLTs uqRHKOkaF9mQ/3lo3jInrSQyQ9RfgKX5Qr7c19Dq9Quu/KgefCI8JdR7GzYRwUctiuam xLTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si4311192oia.232.2019.12.12.17.59.05; Thu, 12 Dec 2019 17:59:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731830AbfLMB5Y convert rfc822-to-8bit (ORCPT + 99 others); Thu, 12 Dec 2019 20:57:24 -0500 Received: from mail-pf1-f171.google.com ([209.85.210.171]:40204 "EHLO mail-pf1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbfLMB5X (ORCPT ); Thu, 12 Dec 2019 20:57:23 -0500 Received: by mail-pf1-f171.google.com with SMTP id q8so574921pfh.7; Thu, 12 Dec 2019 17:57:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CndJAowMJInL8tn9fXQ0Bjot5xFUhuMQ3mivrKVBjhs=; b=SPZ6K+QLP7ROl0y8zPZaMHzYPXUMOB6s6rAYXRHwuUC7e/DV5q7FikMIhkskolpiek R0SFRpQ1GY+D7YFTfNcC6I4imGCVyeHxrD7+yslYQ5wN83bRCR1+8AzP1XlSZ+g2Helr qziIs2h/itqZbDhoylpBbGlGMmmHbamMAEeRTpkkRRNH0IjnzaUwN34u8M95N1dY4ytr xwZLj2Pac81vadqigxCBVHBxEbZK4nwgAtLpsG+UTKT+Ii6pNR26hfFOaVj+piA3F/gB oo44GHey59S3b5YUHBUdP8GDuGwRKt3qDMDwRKC5w42PGdLhWKj3K0UJ2c3YUMUAcmG3 reSQ== X-Gm-Message-State: APjAAAUV0R0rvWd9Nut1wYIl3XneampVlpPOzVXD3F7+nF4+NkMQtJ2u xbepiNjPT2/0CeCyC5tiKmw= X-Received: by 2002:a63:fe0a:: with SMTP id p10mr13699053pgh.96.1576202242950; Thu, 12 Dec 2019 17:57:22 -0800 (PST) Received: from [192.168.51.23] (184-23-135-132.dedicated.static.sonic.net. [184.23.135.132]) by smtp.gmail.com with ESMTPSA id i11sm6421887pjg.0.2019.12.12.17.57.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Dec 2019 17:57:22 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [Make-wifi-fast] debugging TCP stalls on high-speed wifi From: Simon Barber In-Reply-To: <34a05f62-8dd0-9ea0-2192-1da5bfe6d843@gmail.com> Date: Thu, 12 Dec 2019 17:57:13 -0800 Cc: Dave Taht , Make-Wifi-fast , Johannes Berg , linux-wireless , Neal Cardwell , Netdev Content-Transfer-Encoding: 8BIT Message-Id: <5DBB113A-E61A-4032-B877-18BE3ABBC616@superduper.net> References: <14cedbb9300f887fecc399ebcdb70c153955f876.camel@sipsolutions.net> <99748db5-7898-534b-d407-ed819f07f939@gmail.com> <22B5F072-630A-44BE-A0E5-BF814A6CB9B0@superduper.net> <34a05f62-8dd0-9ea0-2192-1da5bfe6d843@gmail.com> To: Eric Dumazet X-Mailer: Apple Mail (2.3445.9.1) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org In my application this is a bridge or router (not TCP endpoint), and the driver is doing GRO and NAPI polling. Also looking at using the skb->fraglist to make the GRO code more effective and more transparent by passing flags, short segments, etc through for perfect reconstruction by TSO. Simon > On Dec 12, 2019, at 5:46 PM, Eric Dumazet wrote: > > > > On 12/12/19 4:59 PM, Simon Barber wrote: >> I’m currently adding ACK thinning to Linux’s GRO code. Quite a simple addition given the way that code works. >> >> Simon >> >> > > Please don't. > > 1) It will not help since many NIC do not use GRO. > > 2) This does not help if you receive one ACK per NIC interrupt, which is quite common. > > 3) This breaks GRO transparency. > > 4) TCP can implement this in a more effective/controlled way, > since the peer know a lot more flow characteristics. > > Middle-box should not try to make TCP better, they usually break things.