From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3nb-aXQQKDnoiwYlemmejc.amkkYic-ugdg-dYqrjgqrq.ZsddcpZjmYr.lcr@flex--kyan.bounces.google.com> Received: from mail-ua1-x94a.google.com (mail-ua1-x94a.google.com [IPv6:2607:f8b0:4864:20::94a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 6FD323B2A4 for ; Mon, 7 Oct 2019 00:31:26 -0400 (EDT) Received: by mail-ua1-x94a.google.com with SMTP id t16so1975021uae.21 for ; Sun, 06 Oct 2019 21:31:26 -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=SlvEJivuJVpik9EELPiEmiAI6r961EG88fWr2/CrBCs=; b=oq+JjPTSuo7VivHm5zcXY8ilBeOsXOYBpPEKTTs7XaP/lfOYDSPyVtR135owcAdgeI dlkKkiEU2B7baPCX4sDRiIO7NC1NXg3shpBjRsDw14YCDkSOTtw9IfukmeCZQHDbfd4u c31KAFoo8GsomuYFb6E+VaQh+aGh8N8z+0GaGU78ksOLkviEgG11U57BtIO2WpApnNr6 mBGM8QZKxdxinKf6xrt/EV+tSgaiz3LWzHS7sO+otiQzEqqA7s4uNbb/kC7BWimavtF5 dqtSbVnITLzs5gmPdzSN0BPcivaDvEJW16O913rgDdmve08oHjNYLSGj8zBB4YRMQpMA Ectw== 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=SlvEJivuJVpik9EELPiEmiAI6r961EG88fWr2/CrBCs=; b=tJ5zRtz4IzJRhy+JfTYj2mPjP1d/KSyBTR4sWm9MaiYla1G0rv7Zxpp0pGl4d7a+nh 21lQfqiQVHUni001tv+2/9rZgIrwdaglTt6aqELh8VbOgoZIEVypqFRahmszyMgw48iy 0SL88y5Zw3/q/DSNHozebfrcsgYCcVqYSWD4SDt4AtFkLYiqCQNRfrYoE+QkNcePzIoW 28+JRUj4jLsT9ciBKEBdkQL5yTlyLV271rgalYXi27gxMOQ8ivVC3sz26decn1VIrgNr RzTrT4Oc8AsVqXULpEA6WluOODgm/ei0SK8wDkL/AWD7HPIBE4VFXlZTS2XILvv7UCCA aH0Q== X-Gm-Message-State: APjAAAWeLOMhscQdZi3vF0sn37nfYZCA1ZAU7L7brrzqKwAJidn/lw9d ZxxVTLeCZNT3DCEDD5VTX7w77yK6 X-Google-Smtp-Source: APXvYqxM0y87Lg5ycIjqnmhP27v5DYaJLIDSpzin2cfXX56OKIdqwbvf/I4wc7gQaJUaYQ992KdrfGyl X-Received: by 2002:ab0:2b06:: with SMTP id e6mr1208074uar.127.1570422685747; Sun, 06 Oct 2019 21:31:25 -0700 (PDT) Date: Sun, 6 Oct 2019 21:31:18 -0700 Message-Id: <20191007043120.67567-1-kyan@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.581.g78d2f28ef7-goog 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" Subject: [Make-wifi-fast] [PATCH v2 0/2] Implement Airtime-based Queue Limit (AQL) 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: Mon, 07 Oct 2019 04:31:26 -0000 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/htt_rx.c | 1 + drivers/net/wireless/ath/ath10k/mac.c | 8 ++- drivers/net/wireless/ath/ath10k/txrx.c | 13 +++- include/net/cfg80211.h | 7 +++ include/net/mac80211.h | 29 +++++++++ net/mac80211/debugfs.c | 78 ++++++++++++++++++++++++ net/mac80211/debugfs_sta.c | 44 +++++++++---- net/mac80211/ieee80211_i.h | 4 ++ net/mac80211/main.c | 8 ++- net/mac80211/sta_info.c | 20 ++++++ net/mac80211/sta_info.h | 4 ++ net/mac80211/tx.c | 58 +++++++++++++++--- 12 files changed, 247 insertions(+), 27 deletions(-) -- Changes from v1: - Fix checkpatch error. - Keep iterate the list of active_txq until an eligible txq's deficit become non-negative in ieee80211_next_txq(), instead of break the loop after one iteration. - Enforce the AQL limit in ath10k's pulling mode in ath10k_htt_rx_tx_fetch_ind()