Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4918227imc; Mon, 25 Feb 2019 13:36:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IZYzZ1a/WY7wp6E+BDo7uWanR+JUn0QdUNiMLXev0mOCbV2RsTXFQiRmRqzxK/1Hc+ricua X-Received: by 2002:a17:902:748b:: with SMTP id h11mr22147452pll.334.1551130610583; Mon, 25 Feb 2019 13:36:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551130610; cv=none; d=google.com; s=arc-20160816; b=yCg2goehP31CFNtteFb15bBKEvKOFe5OPFRv3UpGJBK4rdtrejxdcuPVfYxfv3nEd/ x/qJ8qDKtvsYU2fAFR9CbA1X43y2S09QRlgLuZJNTfjvTiXaaCfeSvR0B0jYL3s29KR8 O+V+fr6x+i7U/khz/mQTZswcBW+9ruiQ3UE25eNJciDfneO3zsW95JOJ8KPF7aaKTLwu uny5mjsw+0KNEzJXo+Djj2+diYrswc++4UwyerqhNAJ3P4u6igrxocSkKG/+9rdwCdRh BA1rEaFDuGBamT+xpxMk4Ay32eZt0Iv463DSxTZUpzW96J3ou85gwA/SPAkn0GGKzHK8 NR1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZwRThNIyTpYeWsGAg1izM/joRQ9jBqus/WLwSL/Vd94=; b=FpV5rXRZ//TrkWRX8nuh8FxMDlTwZuf44LqAeoEt93b9lmgk7wMosR/S+iUvalyqtM P7HnDEU0/OK9jFRPkmelOtYP4Wdh+14NUQvn+/529dC8grb/tdzkjPx7MaMkEocfV6wA gCCsMU5VeYbAex/gbNtYNRz+w6NuwE0k6O9mw+64hGrxwBlwrG6vLRFMeKU5xsLBDNhY 4of5nU6UuPAvS6jY493a/oNN7ftCfzOj9aoPNCj6D8DtttmljCjF6XY/LNbBTHhvDb9Z tXt4RJQYnFvEMBtdB4FT3TClIFpEm5WphqObUL95k62mG1GIobBL+KrtLnlvuo0lCJby RsYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OL8lO6QT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 j70si9598819pgd.65.2019.02.25.13.36.35; Mon, 25 Feb 2019 13:36:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OL8lO6QT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733120AbfBYVgJ (ORCPT + 99 others); Mon, 25 Feb 2019 16:36:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:42608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733097AbfBYVgF (ORCPT ); Mon, 25 Feb 2019 16:36:05 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C58FE217F5; Mon, 25 Feb 2019 21:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551130565; bh=LDhHh8q7rf7tZf3Ss/4ym2NC+6YUnn1uZ7eCBrgWPR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OL8lO6QTLxTrBwykpnh9/MrKgXE9TYdDrlVNEz1U/sw/6yfVX8npgGUKM7c58HXDH pqpj8lQ9ztVVSXQWfTFHtwH5wnxRVe18sIMFfHT7Vs8K7RHmbU2sHLwpE2Yf15+22j tKTuJswK3yigdKjbg4cE8qnpH8lg2fN94DY79mKU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Johannes Berg Subject: [PATCH 4.20 161/183] mac80211: Change default tx_sk_pacing_shift to 7 Date: Mon, 25 Feb 2019 22:12:14 +0100 Message-Id: <20190225195122.158033941@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190225195054.748060397@linuxfoundation.org> References: <20190225195054.748060397@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Toke Høiland-Jørgensen commit 5c14a4d05f68415af9e41a4e667d1748d41d1baf upstream. When we did the original tests for the optimal value of sk_pacing_shift, we came up with 6 ms of buffering as the default. Sadly, 6 is not a power of two, so when picking the shift value I erred on the size of less buffering and picked 4 ms instead of 8. This was probably wrong; those 2 ms of extra buffering makes a larger difference than I thought. So, change the default pacing shift to 7, which corresponds to 8 ms of buffering. The point of diminishing returns really kicks in after 8 ms, and so having this as a default should cut down on the need for extensive per-device testing and overrides needed in the drivers. Cc: stable@vger.kernel.org Signed-off-by: Toke Høiland-Jørgensen Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/mac80211/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -615,13 +615,13 @@ struct ieee80211_hw *ieee80211_alloc_hw_ * We need a bit of data queued to build aggregates properly, so * instruct the TCP stack to allow more than a single ms of data * to be queued in the stack. The value is a bit-shift of 1 - * second, so 8 is ~4ms of queued data. Only affects local TCP + * second, so 7 is ~8ms of queued data. Only affects local TCP * sockets. * This is the default, anyhow - drivers may need to override it * for local reasons (longer buffers, longer completion time, or * similar). */ - local->hw.tx_sk_pacing_shift = 8; + local->hw.tx_sk_pacing_shift = 7; /* set up some defaults */ local->hw.queues = 1;