From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neal Cardwell Subject: Re: [PATCH v2 net-next] tcp: allow drivers to tweak TSQ logic Date: Sun, 12 Nov 2017 08:39:52 -0500 Message-ID: References: <1510281664.2849.143.camel@edumazet-glaptop3.roam.corp.google.com> <1510444452.2849.149.camel@edumazet-glaptop3.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: David Miller , netdev , Johannes Berg , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Kir Kolyshkin To: Eric Dumazet Return-path: Received: from mail-wm0-f46.google.com ([74.125.82.46]:52419 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbdKLNkP (ORCPT ); Sun, 12 Nov 2017 08:40:15 -0500 Received: by mail-wm0-f46.google.com with SMTP id t139so10404351wmt.1 for ; Sun, 12 Nov 2017 05:40:14 -0800 (PST) In-Reply-To: <1510444452.2849.149.camel@edumazet-glaptop3.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sat, Nov 11, 2017 at 6:54 PM, Eric Dumazet wrot= e: > > From: Eric Dumazet > > I had many reports that TSQ logic breaks wifi aggregation. > > Current logic is to allow up to 1 ms of bytes to be queued into qdisc > and drivers queues. > > But Wifi aggregation needs a bigger budget to allow bigger rates to > be discovered by various TCP Congestion Controls algorithms. > > This patch adds an extra socket field, allowing wifi drivers to select > another log scale to derive TCP Small Queue credit from current pacing > rate. > > Initial value is 10, meaning that this patch does not change current > behavior. > > We expect wifi drivers to set this field to smaller values (tests have > been done with values from 6 to 9) > > They would have to use following template : > > if (skb->sk && skb->sk->sk_pacing_shift !=3D MY_PACING_SHIFT) > skb->sk->sk_pacing_shift =3D MY_PACING_SHIFT; > > > Ref: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1670041 > Signed-off-by: Eric Dumazet > Cc: Johannes Berg > Cc: Toke H=C3=B8iland-J=C3=B8rgensen > Cc: Kir Kolyshkin > --- Nice. Thanks, Eric! Acked-by: Neal Cardwell neal