Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp577264ybp; Fri, 4 Oct 2019 01:20:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMPLw+CAlG/JO9y1llhIE3qYbK70iW2JyzWSAzxhfNTpHwAmCcKynPhlJm+/xryhN9VVL6 X-Received: by 2002:a17:906:8308:: with SMTP id j8mr10922526ejx.142.1570177259334; Fri, 04 Oct 2019 01:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570177259; cv=none; d=google.com; s=arc-20160816; b=WkffMvP/8sEPk/riMfcsC68f6ensXKg7U8YeXPyPTBwt7URUXx8mpG+GaQbuuRmrLs u/bZ1kqk0wepcZlyGoGd6ZQCbdQEdExs5fCOCHn8CT04va78wcXQaNmWZt1w6NZzMQWM tN1zTXJqMyuU78fBfsCNFpjx16UR5JhUQBuzw9nouUWAsmfujE+qVyUo4hy6SJ3Dvogr lo+pPgBQd511oDhUjJHj+SB8RVZtvPn3xLzPnPp3ps7LacNrUuSVC+79x7zsUj9eJykL BvQProGaUfcF7d/EWiD3HSy5WLaotxtDpuwvKM1l8vLYYpTxOkRvNqcNeT7tm0ZkxPmI NdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=eM+TtTHjE2md44io/60oVnM+vsz9X/uBFBALUtWj+xs=; b=YUmxdEjqlgTmF3OtQLB8SWzU3ibFG9liAxgYizxqlCW2mE+keCycNCWigrnigfZuzx zptAjjxGi/sgrErrOsVUVJyqsvMghugtCl9QFLmswmVEYmB6STqu8LTjtNsncYly9Ql7 2vxGe4yxkTMlDgQa5XNwnKclfL++62dvIchZlWJl4+jMQrChuHGhr3s1fVejX3MB+S4W G5tXB0Lbsw+shYqlP0Oiy+voEw+sx89zXN2tCUP5LAPJS7mqKFh0C2QqyufqtDb6GJmt K5SVKohQY2vkWY3Bx1rNrVhKUH2kc1njMvgb70upkIlHdJSLme2D2cCHXOF33cHZnL6E 7ZaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=q2JcCcXf; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 90si3579148edj.72.2019.10.04.01.20.28; Fri, 04 Oct 2019 01:20:59 -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=pass header.i=@google.com header.s=20161025 header.b=q2JcCcXf; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731285AbfJDGWR (ORCPT + 99 others); Fri, 4 Oct 2019 02:22:17 -0400 Received: from mail-vk1-f202.google.com ([209.85.221.202]:54104 "EHLO mail-vk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730687AbfJDGWR (ORCPT ); Fri, 4 Oct 2019 02:22:17 -0400 Received: by mail-vk1-f202.google.com with SMTP id q5so2178130vkg.20 for ; Thu, 03 Oct 2019 23:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=eM+TtTHjE2md44io/60oVnM+vsz9X/uBFBALUtWj+xs=; b=q2JcCcXfsNyJ3p+aeik6xkH3hQdkASeAggPZN+xi4dxEM6VhW2wHAo6C/1xCkewMG6 fmuB38Is0vuGeG/I/EdSIBgXpNjijmWL0NBOwufDALuiGzNtJBG+zewt39cZ46sNDE9l beKkH8yJe0ZnDAsq/oyvpq86Vi9BB80hdaBet9wsKlcdv87dHK4LRNukldiR3qli32qz AVursi1QK6c999rfSzPQc4QhkGzPY67chDI2F41+5UQoL4yT/FgQViDvaPfMma7wGuts 5uCLo5krjyKelgAS4Vz17+xiZ7JUX935//GeY8vIQI8VAdqSACGD8zlB/TtPIflu7YYi 7Xfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=eM+TtTHjE2md44io/60oVnM+vsz9X/uBFBALUtWj+xs=; b=rK69Wr0FDFfDgaYhLAcFYO0G3hF7Zhpe6C/KsKX1qPVGzX1iTHBZiGMlwu5a7WpW2p gbdi9/keGlZS/MVOUzVdTuoXe1cqCAPSk7B7kFZob64ifoKqjuRt8KaN1RFujwcjb/mL r7+hR5E97QfgVixlO7fPrxo2AhVmWK+71S4KtIi6rYHuE+yn98YMhBuoTaHjiuvPUusg p9TV86jW4CtQkg06osF7IDKo/JzUGz7ayWdbaOgHsEiA4on7/1KqG8orJPg0rx96LIEJ p31gRPbFITDlrwXjfOc952DaeeGv4bXLlzHvz7NBX7evbd4YarT3lhFCiyqQrl5HAg/8 0TyQ== X-Gm-Message-State: APjAAAVnK1DZoSLY+3DfCPQGb7GPS79O7DrTcliWCcctpjRvmYtdWhU8 vS0AqoK/uRBIfe1IwsbckGxy2LIn X-Received: by 2002:a1f:5c0d:: with SMTP id q13mr7209330vkb.38.1570170134477; Thu, 03 Oct 2019 23:22:14 -0700 (PDT) Date: Thu, 3 Oct 2019 23:21:49 -0700 Message-Id: <20191004062151.131405-1-kyan@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.581.g78d2f28ef7-goog Subject: [PATCH 0/2] Implement Airtime-based Queue Limit (AQL) From: Kan Yan To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, toke@redhat.com, nbd@nbd.name, yiboz@codeaurora.org, Kan Yan Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch series implements Airtime-based Queue Limit (AQL) in the mac80211 and Ath10k driver. It is based on an earlier version from the ChromiumOS tree[0]. This version has been tested with QCA9884 platform with 4.14 kernel. Tests show AQL is able to reduce latency by an order of magnitude in a congested environment without negative impact on the throughput. [0] https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1703105/7 Kan Yan (2): mac80211: Implement Airtime-based Queue Limit (AQL) ath10k: Enable Airtime-based Queue Limit (AQL) drivers/net/wireless/ath/ath10k/mac.c | 7 ++- drivers/net/wireless/ath/ath10k/txrx.c | 12 +++- include/net/cfg80211.h | 7 +++ include/net/mac80211.h | 34 +++++++++++ net/mac80211/debugfs.c | 79 ++++++++++++++++++++++++++ net/mac80211/debugfs_sta.c | 43 ++++++++++---- net/mac80211/ieee80211_i.h | 4 ++ net/mac80211/main.c | 7 ++- net/mac80211/sta_info.c | 23 ++++++++ net/mac80211/sta_info.h | 4 ++ net/mac80211/tx.c | 60 +++++++++++++++---- 11 files changed, 253 insertions(+), 27 deletions(-) --