Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp824975pxu; Wed, 6 Jan 2021 05:35:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNZjwOmKWTtmEfcs+WpA0aoYX4lgrgfisqjbjreMM1pbsSAj6uhaIzcr5olvSzSFYf0EKM X-Received: by 2002:a05:6402:3186:: with SMTP id di6mr3834258edb.16.1609940151245; Wed, 06 Jan 2021 05:35:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609940151; cv=none; d=google.com; s=arc-20160816; b=W5+gHmIGCE3xoP8Nq9rJe3r1Q9VBXNSM5esGGKdr9OJC6WoR+XbrTNj0Evys+0aCLf rAK+hQi2Jt3u5G0nlKutm6mQKC8nPgacg4i+VnPXvWHUuvIaBRJuMOMWn1fdIKmUIk9p 9RvQuMwaBy4Zbr4no+ajhl/jNFFKWqi/7lvoArvLWqi8OZEiJML4mZcR8P2+OvmTRk0q cGB/iWhFnvOiqACE5Kdng+O0zogvlM4lCWrWIvZzjwUGfxmiKRITmMn6FOo2ECTuD1gC uO3g+uHF31upvh/v1QR/ouEZljJKN9A6nE4LcU++OZX9vAcCXII9X28vo49knHqzqen1 I5eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kLEk8p56/LKORuReiIiQpbhmzF1RSMKBphSSZjmMIBA=; b=n9SXqZ9ScxFxnscWwwOSbco4KkqlzIEa6FXNh2gV9VUnlSFNqIXWHYp0oy/uuM5wpj rr2rjOd03s/upSNw10FG8+iEA3OiGWTpGK6fN21AQT0Es64gmzoufrljLEQSwlgGiN32 I27ry6WLTbLn0rPhXtIG+PIhMz8XFV32mjWMUXGiAb6cyXN4MKO7+bMPk4LYSi6I+4Ov GCsPGDtpQdM89JGn+MkfhjtbNv4icVRQX+9iwTksaltWCo13ctXhmqvbrPz08Y003mt6 /k6yAonhDA53tIRqZkYOhzyScQVltFn0iJthrG25nTuz3k59mZwTrV2dm12o8B20QO8U UTjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=eCykt8Ec; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si918988edv.426.2021.01.06.05.35.24; Wed, 06 Jan 2021 05:35:51 -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=fail header.i=@nbd.name header.s=20160729 header.b=eCykt8Ec; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbhAFNbt (ORCPT + 99 others); Wed, 6 Jan 2021 08:31:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726792AbhAFNbs (ORCPT ); Wed, 6 Jan 2021 08:31:48 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24789C06134D for ; Wed, 6 Jan 2021 05:31:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kLEk8p56/LKORuReiIiQpbhmzF1RSMKBphSSZjmMIBA=; b=eCykt8EcsLGRa6LPmX7wPupJ1c xDOy5ftJkco60H8gAXNGuy0AbMbcTPYJ8oLPDkzkpiSOTXjJRxfKV8TmhtrQ2j4ynEJVVtC9dz+tC 6VNziLka48UYLWOB5I2biNhUoGKup8LP47QeYd/8Lvb1rMkBcUdXdk4vhI2UD+3NJF0Y=; Received: from p54ae91f2.dip0.t-ipconnect.de ([84.174.145.242] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kx8tu-0000EP-Ks; Wed, 06 Jan 2021 14:30:58 +0100 Subject: Re: [PATCH] mac80211: check ATF flag in ieee80211_next_txq() To: =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Ryder Lee Cc: Lorenzo Bianconi , Shayne Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org References: <87r1my49us.fsf@toke.dk> From: Felix Fietkau Message-ID: <68ab89bc-70f4-e822-3d96-21ba3bd6511f@nbd.name> Date: Wed, 6 Jan 2021 14:30:57 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <87r1my49us.fsf@toke.dk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-01-06 11:51, Toke Høiland-Jørgensen wrote: > Ryder Lee writes: > >> 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. > > 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. - Felix