Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp915944pxu; Wed, 6 Jan 2021 07:42:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwh+iPtmqB62SYHZPhqc7zy6y4HGr3vJC5hVl47cuN9W773JicfQzIAESwwiy+brvNX55DQ X-Received: by 2002:a05:6402:312b:: with SMTP id dd11mr4472773edb.308.1609947776727; Wed, 06 Jan 2021 07:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609947776; cv=none; d=google.com; s=arc-20160816; b=zW7RIPUzP8AXs+mwFpnNTBqNnruHHH6y60YFiQw2uvte3S7lh/eDizvBq9B8bCm/Yf CFsMbfp0PoZ2/GUwsebmVpU9yd/vqacWmQ/kThfIbfQ3r0rojlohOuBaxcY1j6f9I+tR y0z0j+3hOrLnP+LwvkeGyGlJaBqeiz8bVrGEdAsKSieQK6P0Ck8YG3RrDwCcKxlROnFJ KcnTwkQq2o1D7rmB8Mem5UbBNEjPnW0e9WhyPP0XyyTGdRKri9H039HwOKu7ZjbgIsuW 8SOQHiu3R/TGE/z/wcgz7f8cdzm1ZBMl/QNg8gdRzunR0/MKK6o1AyCBNkM13t55HTak A8Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=KDGE0W8yzFBpgLufLewOmSfqW6XhZh/N+JY/uG+SGxs=; b=qgFuXOAOfLOFOxPbPggzRgpPKB9cCvUDaaGOkUzElriA+s8451TYvPAdXNd1sQFRCA yYIDpkjw95DqlxsvgGJFDYWm9tnocecBHPc24g5B6Xc081xS96NnwVNygnSrq3Gu0wWB OB9eU6SistwewO4akMUlikWia5JCxVXJRceBxNFJIbs1Ij/8FrihH6h6iB5oWNlyAni8 s9/YG7Um+3KAbn0BDqQhz1+7earYt26UNQmpIGx15sbZfzQvKZdtaVOdT9yh6/a40khk Krg1RAItmna1G7aDDpgOlRSDmE9/BMHvYXcJH+AKed98oFp1m2TmOewvGT2EUB4dGCgK eLoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=jchxXj9p; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si1052668edg.582.2021.01.06.07.42.31; Wed, 06 Jan 2021 07:42:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=jchxXj9p; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727073AbhAFPmN (ORCPT + 99 others); Wed, 6 Jan 2021 10:42:13 -0500 Received: from mail.toke.dk ([45.145.95.4]:49459 "EHLO mail.toke.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbhAFPmN (ORCPT ); Wed, 6 Jan 2021 10:42:13 -0500 From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1609947662; bh=KDGE0W8yzFBpgLufLewOmSfqW6XhZh/N+JY/uG+SGxs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jchxXj9pRUgpAbrQVb3bTyisE35esffYoIx+XszbaOMk6pmMmPlbFoBJORBNQOdKO 3EsEMYfioracL3mnHogf/kfdxdDNN9FN1Lb9p6jnZXqV2K9ucPOPayLjD+aBbX4OGr SsZ4b8dPFyDQeZSqJZGORG62ZpEoeyHFmBbCMriAKn1iZsMWbP1GAZVxEgFd5F/GkQ F0XYEh+PkorUxe0SzEsyURKWLCjHukxsAS/hktOWthvbuFWKid5eFnbUxDYJ93evb9 p1y423XJkWXo9Zd+fXG40bqz+fkSBS7Sg6/whNqRKkDtk3fIbYrj2wWPXN64+iq4S0 xeBM+hSgCQ0zQ== To: Felix Fietkau , Ryder Lee Cc: Lorenzo Bianconi , Shayne Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] mac80211: check ATF flag in ieee80211_next_txq() In-Reply-To: <68ab89bc-70f4-e822-3d96-21ba3bd6511f@nbd.name> References: <87r1my49us.fsf@toke.dk> <68ab89bc-70f4-e822-3d96-21ba3bd6511f@nbd.name> Date: Wed, 06 Jan 2021 16:41:02 +0100 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87k0sq3wfl.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Felix Fietkau writes: > On 2021-01-06 11:51, Toke H=C3=B8iland-J=C3=B8rgensen wrote: >> Ryder Lee writes: >>=20 >>> The selected txq should be scheduled unconditionally if >>> NL80211_EXT_FEATURE_AIRTIME_FAIRNESS is not set by driver. >>> >>> Also put the sta to the end of the active_txqs list if >>> deficit is negative then move on to the next txq. >>=20 >> Why is this needed? If the feature is not set, no airtime should ever be >> accounted to the station, and so sta->airtime[txqi->txq.ac].deficit will >> always be 0 - so you're just adding another check that doesn't actually >> change the behaviour, aren't you? > > I think it might make sense to keep airtime reporting even when airtime > fairness is disabled at run time, so this patch makes sense to me. > Instead of this patch, the right place to deal with this would probably > be ieee80211_sta_register_airtime. When the fairness mechanism is user-disabled I agree it makes sense to still keep the accounting; and in fact that's what ieee80211_sta_register_airtime() already does when the accounting is turned off by way of the airtime_flags field... So don't think anything else is needed there either? -Toke