From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 24C003CB35 for ; Fri, 8 Nov 2019 05:58:00 -0500 (EST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1iT1xk-00006s-GM; Fri, 08 Nov 2019 11:57:56 +0100 Message-ID: <4ce4c199522ef112362efb8db8823e31d5c41944.camel@sipsolutions.net> From: Johannes Berg To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, ath10k@lists.infradead.org, John Crispin , Lorenzo Bianconi , Felix Fietkau , Kan Yan , Rajkumar Manoharan , Kevin Hayes Date: Fri, 08 Nov 2019 11:57:54 +0100 In-Reply-To: <87d0e2fxi0.fsf@toke.dk> References: <157182473951.150713.7978051149956899705.stgit@toke.dk> <157182474174.150713.17459330922820192258.stgit@toke.dk> <42266e95f45d5772e04c9c016bd6179ea14ffefa.camel@sipsolutions.net> <87d0e2fxi0.fsf@toke.dk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [Make-wifi-fast] [PATCH v6 2/4] mac80211: Import airtime calculation code from mt76 X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2019 10:58:00 -0000 On Fri, 2019-11-08 at 11:55 +0100, Toke Høiland-Jørgensen wrote: > Johannes Berg writes: > > > On Wed, 2019-10-23 at 11:59 +0200, Toke Høiland-Jørgensen wrote: > > > From: Toke Høiland-Jørgensen > > > > > > Felix recently added code to calculate airtime of packets to the mt76 > > > driver. Import this into mac80211 so we can use it for airtime queue limit > > > calculations later. > > > > > > The airtime.c file is copied verbatim from the mt76 driver, and adjusted to > > > use mac80211 data structures instead (which is fairly straight forward). > > > The per-rate TX rate calculation is split out to its own > > > function (ieee80211_calc_tx_airtime_rate()) so it can be used directly for > > > the AQL calculations added in a subsequent patch. > > > > Any way it could be exposed by mac80211 back to the drivers, perhaps, to > > share it? > > Didn't I already export some of the functions? My intention was to do > that, certainly, and to patch mt76 to switch to using them once the > trees have converged... Yeah, I think you did. Sounds good. johannes