Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2081538ybn; Thu, 26 Sep 2019 06:47:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxH/1+CKoHBR3tE1cD+nbDpxLktdpqJ25JmCPnMD9neSBNKX6l5KL5JZRR+gMt6gf8fodTy X-Received: by 2002:a50:cf0d:: with SMTP id c13mr3636694edk.125.1569505668561; Thu, 26 Sep 2019 06:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569505668; cv=none; d=google.com; s=arc-20160816; b=VWJiRpwl7pKfeciS888Ddqy1Z/3MJc3+Hc92k68JEOmg/LQtHEiaKF7PpTcOXMzGrL U9pSis1fTMFcB3yTjOz2j4X+DdpAafXamzXlSvw4AUdduRVpWK5CkzjhQuIr2Vw4SDa2 HZPt2P9WYuuvxQ3UZIzwGWPxq9T4BnSBXyo0fkgXSSVAfWlJ4uLhKQ4d7re9p0ldwwHw 2nC2F7KSy5fDe7a/dx7ZFRSprmXAM8VL3y3umZpX0AD2k1sFazdA8I1iifbl140qCgdn 0flkwIhcJvJDu/yl6YUZi7Bgz+Mdn9ain7Drk8H6PJYgPS6G50SA3k7kZ7eQdUP7WPGn UliA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=ha6pCpexQkd18q4ZZThN/GDoKpq3Fb6juM7ytkYiPiA=; b=zoglnx35d+MQs6FYtVeBO8kDEdtn9gkpjIXvurrSA3HScSK6THbtVhTXvVgqxxa+VC 2NI0D28M5hbqywa4A2IAUvEOCV4OJW9fU/G9f/yFKHecqwyGDyazbzTeP3pmyQDcbUXu OSaPP4wXicqkhWI/Snh+HPsqAuWLeOW5+qaoIuJGzPjONU+xyXkpz5hBbw1cEWORlLqL ptWkpWtSwPKsHfn7KZ+KV03ZAeaxyb7PPiY8NSIFj1Z9skuYXIvcvbg/f6SSy9Umjsum v7LIKWt0jok/4IwOado3g+uTQf2/CK1rBRQ46ed4hrcXK+l1cE/9MPrh1EzRbNcqbuZ5 xRgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Jk5I4EfH; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 e50si1585816edb.177.2019.09.26.06.47.18; Thu, 26 Sep 2019 06:47:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Jk5I4EfH; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbfIZNrF (ORCPT + 99 others); Thu, 26 Sep 2019 09:47:05 -0400 Received: from nbd.name ([46.4.11.11]:41082 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbfIZNrF (ORCPT ); Thu, 26 Sep 2019 09:47:05 -0400 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=ha6pCpexQkd18q4ZZThN/GDoKpq3Fb6juM7ytkYiPiA=; b=Jk5I4EfHWWIuzrVYJ9f+fLbyaz n4GTb697VNP6Nv5VX/ZN5w0OtTYAMEYdY+qr6WNYns8/h02KE9yKN2uaKF5AhsZ/c2wHF7T5a2LLv zqXw/+AMNjEkoFkobwbTdZu/TiZUQO6cyDwA7MVGLNZkJ7EQzZ90aoeTAA/9cOnC1Y+o=; Received: from p54ae9b80.dip0.t-ipconnect.de ([84.174.155.128] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iDU6m-0001As-NI; Thu, 26 Sep 2019 15:47:01 +0200 Subject: Re: [PATCH RFC/RFT 4/4] mac80211: Apply Airtime-based Queue Limit (AQL) on packet dequeue To: =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Johannes Berg Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, John Crispin , Lorenzo Bianconi References: <156889576422.191202.5906619710809654631.stgit@alrua-x1> <156889576869.191202.510507546538322707.stgit@alrua-x1> <08f0ed6e-b746-9689-6dc8-7c0ea705666d@nbd.name> <87wodv19jl.fsf@toke.dk> From: Felix Fietkau Autocrypt: addr=nbd@nbd.name; prefer-encrypt=mutual; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4kYMI78h1TSaxmtImEAnjFPYJYVsxrhay92jisYc7z5R/76AaELfF6RCjjGeP wdalulG+erWju710Bif7E1yjYVWeA/9Wd1lsOmx6uwwYgNqoFt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LsIgeRGAAn1ee RjMaxwtSdaCKMw3j33ZbsWS4 Message-ID: Date: Thu, 26 Sep 2019 15:47:00 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <87wodv19jl.fsf@toke.dk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2019-09-26 15:17, Toke Høiland-Jørgensen wrote: > Oh, right. Didn't know that could happen (I assumed those would be > flushed out or something). But if we're going to go with Kan's > suggestion of having per-station accounting as well as a global > accounting for the device, we could just subtract the station's > outstanding balance from the device total when it goes into powersave > mode, and add it back once it wakes up again. At least I think that > would work, no?Yes, I think that would work. - Felix