Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2275872ybx; Fri, 8 Nov 2019 02:11:19 -0800 (PST) X-Google-Smtp-Source: APXvYqycZD03eOMVopMaMj25pym+ophtw3QA6m/N06GKWl4eVK9ceP2Li1jHitrmWFNR6AiOrkHk X-Received: by 2002:a17:906:298b:: with SMTP id x11mr7877908eje.257.1573207879770; Fri, 08 Nov 2019 02:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573207879; cv=none; d=google.com; s=arc-20160816; b=njo9PhpaIby8iyk7fWGY9PnrZ9IT21Exk7r8UowaFIpqm3kBJNZO5RWDRdu75X2nv+ J42H2JwOaEGE+5bEnn5sq1MkQLRcPhNd54dl6WRwOM7QQ5g2Ib95uAevNHKPPRwi3gfK uYyykeguV7UQM/vbunye63QwwiqkvMowLoTsMh0ba0boLRG+LL67haFxqora0OrjtlmD al6zyQaq4QfxzUzmTz+XAgI/JnAGgdC9ZO6C35Itlu96rX6V6FbWKrFcU1Zvy9prEHSp RGn6UKocuv0CHgEwdecSdMFy1s4bqA22FtztEufRd3N6A73cTrRZd2jTpwHfFJG6C3cV KDSw== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=y2HNq2AyHh2bGE+vFiq31gkBYq1gCQ3Z1IZTQUQKf3U=; b=T+6w9yJoDSClXv3QHAa9PJp2i/1/bEGRYveheEJ/TP9k9lzjKISq79afORslD8dd8A ReGiTLv9qHb1b//MdOsFr17+nAaEOuF+V6n69of44pWlx3gbVyvtjk7jw2bIyQWlOvN5 /B2u0eRtLSXQFuSDss3jkhZ+iDYnAZCwHQMsRfU/AyRNTEwmn4ILsnnj1APXIyAyoT68 jp8oG55RpEFrC5b9uzru6fvwMX0SXmsxTBEwQYu1yWbOHfBpNlcNKKGgwtOLaqkwx186 PGIKyDDZ4X1LI5z+5lz5OGsApyVkw10ORNodCkRn+mwG456PbS8Hje6ianq6F8Y+7/H2 QnHg== ARC-Authentication-Results: i=1; mx.google.com; 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 gw9si3488872ejb.284.2019.11.08.02.10.54; Fri, 08 Nov 2019 02:11:19 -0800 (PST) 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; 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 S1731386AbfKHKJ4 (ORCPT + 99 others); Fri, 8 Nov 2019 05:09:56 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:53562 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728513AbfKHKJ4 (ORCPT ); Fri, 8 Nov 2019 05:09:56 -0500 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 1iT1DG-0007Yb-CK; Fri, 08 Nov 2019 11:09:54 +0100 Message-ID: <1a2eb096119c9029e67caf797564d6511c8803a7.camel@sipsolutions.net> Subject: Re: [PATCH v6 3/4] mac80211: Implement Airtime-based Queue Limit (AQL) 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:09:53 +0100 In-Reply-To: <157182474287.150713.12867638269538730397.stgit@toke.dk> References: <157182473951.150713.7978051149956899705.stgit@toke.dk> <157182474287.150713.12867638269538730397.stgit@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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2019-10-23 at 11:59 +0200, Toke Høiland-Jørgensen wrote: > > > +void ieee80211_sta_update_pending_airtime(struct ieee80211_local *local, > + struct sta_info *sta, u8 ac, > + u16 tx_airtime, bool tx_completed) > +{ > + spin_lock_bh(&local->active_txq_lock[ac]); > + if (tx_completed) { > + if (sta) { > + if (WARN_ONCE(sta->airtime[ac].aql_tx_pending < tx_airtime, > + "TXQ pending airtime underflow: %u, %u", > + sta->airtime[ac].aql_tx_pending, tx_airtime)) Maybe add the STA/AC to the message? johannes