Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp824820ybp; Fri, 4 Oct 2019 05:38:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOUpxf/2Di2HNy8qWC1ugXhOrz0DjsyNnfUZg0/HJTpeddjmfZCqCwyQldoNFm4+GP/MPG X-Received: by 2002:a17:906:9604:: with SMTP id s4mr12328263ejx.38.1570192724210; Fri, 04 Oct 2019 05:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570192724; cv=none; d=google.com; s=arc-20160816; b=g7kZUwULS+jqjaIDIp4H8hY/yRaekL3z2COsz/bPgczWCeX/uxgkoIyUSGLUGtGTmJ Hrz3VdwmKwa0bhEs38bkzZmQzVhT0+pmWKam4Ln7XZp7nvqIbNUpw2DQqWpmrd6qMUxe XUazZJmbyQfjJDRSI6PPe7OFf/yuAlByUb3NejkDDot3NHi0nysnrqhTQmi/UrQkGBlz 8U99JNHJUHMV4nGh85RxyDw5dvjNytDsbuUWspzF3BeBYkLYSmBiIY4R/w2u2KpDzutq RsfVSg8xT5mhCumeWsuAkSeG6bGFtTVCTKIzYkBhlzp7Dja0Sl2aYXoCpAAuD1ljFQUi RFag== 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=kWz8jbVIzlqsER4C50uQBXJO2ppFBGn1YtFt6A5y/ek=; b=VYtAZfVvnfV/mDArbVVZ0bsDQaU0KyQaV2EayD9m+0G4ZzZ1uiUKokJnc5SNcyrQPG olg6v0UNZSPdcTVJayzbuN8XV3XL+V9D+5Ls4OMFTYK0i25FSH1l8SMExFMDnNcjXzXI 335acw/GILKGPlgmJsZG45/8xB66MVewVlcoemffCa6m0Dmo1XyYXvav8aK1oos00sHE wbfbKf9jdP+31tnlmFSjC2TVu0hbD6roNfYD8R3w1Ob2LYDzlyC/ks7bz5v9vQurbrDg UZKE+cIPtlSF8522jO7fIkCHauC128Ul/QstfMAPzXx5SLN0hU4Bulc/XTZ09qy1Ebbp h3NQ== 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 s20si2955425ejx.223.2019.10.04.05.38.17; Fri, 04 Oct 2019 05:38:44 -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; 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 S1730288AbfJDMen (ORCPT + 99 others); Fri, 4 Oct 2019 08:34:43 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:39270 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbfJDMen (ORCPT ); Fri, 4 Oct 2019 08:34:43 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.2) (envelope-from ) id 1iGMnB-000819-Sd; Fri, 04 Oct 2019 14:34:42 +0200 Message-ID: <0dbf438d7e176c85164b8568a98f0d6e98292152.camel@sipsolutions.net> Subject: Re: [PATCH 1/2] mac80211: Implement Airtime-based Queue Limit (AQL) From: Johannes Berg To: Kan Yan Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, toke@redhat.com, nbd@nbd.name, yiboz@codeaurora.org Date: Fri, 04 Oct 2019 14:34:41 +0200 In-Reply-To: <20191004062151.131405-2-kyan@google.com> (sfid-20191004_082219_852781_215A08B7) References: <20191004062151.131405-1-kyan@google.com> <20191004062151.131405-2-kyan@google.com> (sfid-20191004_082219_852781_215A08B7) 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: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2019-10-03 at 23:21 -0700, Kan Yan wrote: > > +/* The firmware's transmit queue size limit in airtime */ > +#define IEEE80211_DEFAULT_AQL_INTERFACE_LIMIT 24000 I'm not sure I understand this completely, but IMHO rewording it to be like a "NIC limit" would be better. However, I'm not sure it *shouldn't* actually be per interface (i.e. moving from local->aql_total_pending_airtime to sdata->aql_total_pending_airtime because you could have multiple channels etc. involved and then using a single airtime limit across two interfaces that are actually on two different channels (e.g. 2.4 and 5 GHz) doesn't make that much sense. Actually, it does make some sense as long as the NIC is actually channel-hopping ... but that's in the process of changing now, there's going to be hardware really soon (or perhaps already exists) that has real dual-band capabilities... Maybe we can live with this now, but we'd probably expect to change this really soon. johannes