Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp731263pxu; Wed, 6 Jan 2021 02:54:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoP6WD7lhCEljkpOz/QX+ELyEg/BvN2KgCZRIgjASr4CR3kCWzNkZHOAiU8VxhdYV+1XmZ X-Received: by 2002:a05:6402:1a2f:: with SMTP id be15mr3618162edb.209.1609930477412; Wed, 06 Jan 2021 02:54:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609930477; cv=none; d=google.com; s=arc-20160816; b=E/8wGd3fOmys/llZdWeUx8dkZKCkHbmNd61VPOETJcWKSe4+RCbv7Rt6vPv34EiVhU FrvyOD6CrrqkojcZ47To7EaAYgBxc1nCoPchm/K7/WIARylwBZGYsNS5atVBDImNRj2J wUtt2Vne7uTxdE2G0QUi2sVv691thGGl1OeZnYLSeabWHz5RCGxz82KQeZ7BdaSrDOhj 1uY/5uFw+JhOzp4TJnWUc8co/JgQsfCBRY3NHeDBFUOgyhrR/CbGMUxwwE//OjhrMgEt 4A8AL9DaViNPuNVTHcsJlUyO4kJ4Xz9yt/63BW5IviKemNMnLdNIJM0rcuUU/+jNTJe3 /ZxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:from; bh=Z4mZUkE7Z9ZY+z1IvqXWeSPR1h3ZXhuXokAhd6RtGp0=; b=Rwl4FUbNwNReEdneffAweSWqphwxkzbdzd4/y9IwZ5FW/mtXDZA13beauqofIYUBkb xprYiWdOmZvGfaD/fYE1EETYhroqBkBnj43smBWkFW2fyOfA66sYzIscuVUJpOo0Aixr nXkA+72UNp0t+kfkoZfS4w2tMh2FrENdzRsKCoz6fCINv3cE/ImvhYX2moaGyJUZ8Gdm xIuwpFBQK5VaIeTb40dMVx+6+kU66Ld9A99MfbXAV5+ssSbvdZJix02TxcMU6y1CdFkX +QXFkD0ItQVwZEYuyO7JcSRM+cEpX3L0CkiImP/GJ1o8RG7dDE8rEDHkrg4u5kc3NEG0 RIjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=gprq7LBe; 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 lg10si785958ejb.120.2021.01.06.02.54.12; Wed, 06 Jan 2021 02:54:37 -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=gprq7LBe; 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 S1726871AbhAFKvz (ORCPT + 99 others); Wed, 6 Jan 2021 05:51:55 -0500 Received: from mail.toke.dk ([45.145.95.4]:32965 "EHLO mail.toke.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726844AbhAFKvz (ORCPT ); Wed, 6 Jan 2021 05:51:55 -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=1609930270; bh=Z4mZUkE7Z9ZY+z1IvqXWeSPR1h3ZXhuXokAhd6RtGp0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=gprq7LBe2GwEcqSN10ixDnglRGCoAMxMeoi/RqsCrHEx8pG+vg+SjQhQEFXd9nM9E /MpA1zz9uFDnUpBwftmX5VDZuBjNl7G4rsuO5kZhQ/quV3/hSICKh6AqItYeF1qTGt OHjVoGkvNWBK2HAuMwBG3+CIl/gzrvTP4EC8D5NYgYet0Q1XpjxLWJXvQMCFF2vDV6 M+zqcSRKv3lrXCe7g07BiKWtH1mTCthe6wG5dFKfbqQTbeW8jtLHoDAoFIEDzp+Hwd n30A/sjfJINCOvOAaOO/HPSz546/iyT5L14lFnTGAeHdqEazKsZG9HI/yK6nUIMSzD wO0P0IGG4htZg== To: Ryder Lee Cc: Felix Fietkau , Lorenzo Bianconi , Shayne Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, Ryder Lee Subject: Re: [PATCH] mac80211: check ATF flag in ieee80211_next_txq() In-Reply-To: References: Date: Wed, 06 Jan 2021 11:51:07 +0100 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87r1my49us.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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? -Toke