Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1553527rdb; Sat, 10 Feb 2024 06:55:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6cMBsi0aiVuVQtA98yZmwQVrAHqEphOphu9AQYOChxrQNkdkIAiF3kFMHbi4M4bX0JFKqRPK+I4RYUvUFJ0IfC2NNUpus6H3azr73xw== X-Google-Smtp-Source: AGHT+IGB+BQEtvnr7pPuGKblj6wLR2UjLDznzCzDuO6drU97k7TiM0QkyBvsbHbMxYADSlimPMRi X-Received: by 2002:a05:6402:248e:b0:561:aa6:32f5 with SMTP id q14-20020a056402248e00b005610aa632f5mr4220525eda.18.1707576912861; Sat, 10 Feb 2024 06:55:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707576912; cv=pass; d=google.com; s=arc-20160816; b=fUOgw6pRPnvpSOeVme9W1Q/Zf7eQNIscqKYI8l/oZIb1K7UD7j+P5vEsBvbrYbSEPF UVor8+FQJjewhqk4+M96D3ErR8jqYmyyCk6zfmYmoE/1loriam0UnPoThU65OkTJ8bC+ Xc/56rA6ACIKasbGJK4QDX3X5IJiH/1b1NszjNjpnITAd6NGX6X2tyRSisFgRc90Mw6X z+mlgj5vwYwpRCTNuLa/y+ghl475eaduMC7rnJdTk9hsGrYHpNWhfuZ/qXvC7CuP7ERr f72tHWGZQSBmoyNP119GjiT/8y6DpgI6COkz5vSlYkSzvmaqNNA5zuKggHV3D1vvIk7q 3oWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=77qbK19O5e1O30Vwkw+QX5Xq9icZKNCyM73TpwHsGb8=; fh=Jf8miyn6yNPZZ6HUU+/eGQg/W1U8JIFmkJiZy7tvHLg=; b=b04uCIrIpSpP/FuO8CaRGZ1wrYnxeSi0H3/4pLEwU8qaOg1zYGiHpVg7qXB2B6Ra/U TO5qpyteSpykykjGwOwYepFK14sN+peH8pA2xREt+imZUjXg3uIJd7HRn4PfcRU72NRC 9Fc2QLasBjvbnX2X6PsjSKKoYq/Mww8pH2Hgo8/JgrIFaT6WlxzVxx6rDO0wqCcHkjEz U8Y2kzpTaTplGmSS6bpnqR9AoNeXYRoZWpXGqJyObFH2d1Y6HEu3QA2WY0861UbATLZB fbnw3c+laqdYK8bfpjZpTdPLRS8oiq03bdAP/8m6bqKdX7vU6BKLXl9d9YEXoXZGqW+P 36dQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jGNHP2X7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3414-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUGoLc/+ZORTp9WWsRGrCzOSBwvNXIyOMkHg3ksR8g5KtnwO54gRLHgG7c3YPDRqvC+07CyKbzD+SevudPboqpz+ewaK0j2PZmmZ/4BJQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p4-20020a056402074400b005614d000d08si917761edy.192.2024.02.10.06.55.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 06:55:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3414-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jGNHP2X7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3414-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8D5021F21FFB for ; Sat, 10 Feb 2024 14:55:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B59E54659; Sat, 10 Feb 2024 14:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jGNHP2X7" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAC8879E5 for ; Sat, 10 Feb 2024 14:55:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707576908; cv=none; b=KT47GtKOa/W4eHaV5Bmi/s9PsejQrMaN6GR3aSNTdGk0EunpYpM1c9AM5op4gyApK98ssV1I2ELTVC5QD1Xv/gsKCmZmQFJAQgpqoNvqV/OtYdqmQqKYDq9wbCgrDl/NzpRvrnkD2/wStWXUVSQbU3CFjRUgtAt9J82IrO3R8kY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707576908; c=relaxed/simple; bh=kwWtRq/cGgRKw8frGepAbUX5lO+pDYcwk9bCJla8AoE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=lu5Rex/gtDzYMx1GKCnrxU+OVB+60X26ovGcGMH15k6UruNnhaMrVc4YHlJVuP9zAVNKmkhMCEV8lhRMDUI5N2N3cgVuLmQrUHBP4ZtJLEzFGasPTYkYFyLnAu9U5X7iaawD9rOFBkf27NJ0IY2AyAem5TDPiyOcefvCFoudyiE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jGNHP2X7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16C24C433C7; Sat, 10 Feb 2024 14:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707576908; bh=kwWtRq/cGgRKw8frGepAbUX5lO+pDYcwk9bCJla8AoE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jGNHP2X7HJ+7gwMiRuPPi28U7ZxDsDY35HYC+TmTroOtRChfmx4Qa4EcbsHZoP/aT JGYxJISU8sVo0tLDdwzl80nBAsYpMf1YzV3/PbqTNxbS8VfSbKTqFIgzKHEOzv0vzh z1832DjkBJCUli5aPywX9K5Pzdku8Z+8Imi/uAxqjWhYvd7bO4u1AuhuI4nA4YB12T tDOHbWAc6zpvLDIH76BrlJRDL1BiBQiwV4I1WAszs25On1kAr988tDCBMyTz+RKNIh RzXK7qAFSMPOdS+PTLk/1deXavMEMGzB1hdJl0bYMzuYpCemY4cifmybPAmzmxP5ql AJbgf8Che0dGA== Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 2331210F5260; Sat, 10 Feb 2024 15:55:05 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Felix Fietkau , linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: Re: [RFC] mac80211: add AQL support for broadcast packets In-Reply-To: <20240209184730.69589-1-nbd@nbd.name> References: <20240209184730.69589-1-nbd@nbd.name> X-Clacks-Overhead: GNU Terry Pratchett Date: Sat, 10 Feb 2024 15:55:05 +0100 Message-ID: <87plx4s71y.fsf@toke.dk> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Felix Fietkau writes: > Excessive broadcast traffic with little competing unicast traffic can easily > flood hardware queues, leading to throughput issues. Additionally, filling > the hardware queues with too many packets breaks FQ for broadcast data. > Fix this by enabling AQL for broadcast packets. > > Signed-off-by: Felix Fietkau > --- > include/net/cfg80211.h | 1 + > net/mac80211/debugfs.c | 19 +++++++++++++++---- > net/mac80211/ieee80211_i.h | 2 ++ > net/mac80211/main.c | 1 + > net/mac80211/sta_info.c | 21 ++++++++++----------- > net/mac80211/tx.c | 14 +++++++------- > 6 files changed, 36 insertions(+), 22 deletions(-) > > diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h > index a499bd7e1def..2f280c629aea 100644 > --- a/include/net/cfg80211.h > +++ b/include/net/cfg80211.h > @@ -3385,6 +3385,7 @@ enum wiphy_params_flags { > /* The per TXQ device queue limit in airtime */ > #define IEEE80211_DEFAULT_AQL_TXQ_LIMIT_L 5000 > #define IEEE80211_DEFAULT_AQL_TXQ_LIMIT_H 12000 > +#define IEEE80211_DEFAULT_AQL_TXQ_LIMIT_BC 50000 How did you arrive at the 50 ms figure for the limit on broadcast traffic? Seems like quite a lot? Did you experiment with different values? -Toke