From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.toke.dk (mail.toke.dk [IPv6:2001:470:dc45:1000::1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 4D5493B2A4 for ; Mon, 9 Jul 2018 12:37:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1531154226; bh=3437WOLP5R/677feyq31g4LP9PZqE7ce0f+8vpdg7Fw=; h=Subject:From:To:Cc:Date:From; b=dFhNACI5XoZC4N1G5sm4cdrLrJKK16MhvA/0ibs65c6Y2PK8ugjKL2KL/+dCVTp28 QnOaiJbTyN38L6tw2lH6YYKCKO+rNSj4DAYpdlJ8+TkNVr+32ETyo713/bBJxToqJJ Mfjq8ItwaI2bWhnOYHT6vY6bMtOyJD/NRHAqXDdEQyWuxYRLu/VV1/BrlkSo841c+M 5i4uSlAvQ3HWXxsf3z0LlG6CPR2GMtAngELj8tu0R78PyMeLK5UmOSufIWNfDLQZHn L0WTtHuMxiKckx5Eggbtng7TGtaQXJaht0tCDdKvG07uUoNYdb3AdINP6s57K3Y6JA 1tnVgeZWOtYTQ== From: Toke =?utf-8?q?H=C3=B8iland-J=C3=B8rgensen?= To: linux-wireless@vger.kernel.org Cc: make-wifi-fast@lists.bufferbloat.net, Felix Fietkau Date: Mon, 09 Jul 2018 18:37:04 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <153115421866.7447.6363834356268564403.stgit@alrua-x1> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Make-wifi-fast] [RFC v2 0/4] Move TXQ scheduling into mac80211 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, 09 Jul 2018 16:37:07 -0000 This is an updated version of my previous patch series to move TXQ scheduling into mac80211, allowing more drivers to take advantage of airtime fairness scheduling. This version keeps compatibility with the old wake_tx_queue API, so drivers can be ported to the new API one at a time. For now, only ath9k is changed. There's also an update to the scheduling to use a sequence number to keep track of scheduling rounds, so drivers have a clean way to loop through all queued TXQs exactly once without having to keep track of the first TXQ seen in a round. Finally, the airtime fairness scheduler also incorporates weights into the scheduling, which allows userspace to implement policies for how airtime is divided between stations. I have a patch series for hostapd to implement configurable policies, that I will post separately once the kernel side is in place. --- Toke Høiland-Jørgensen (4): mac80211: Add TXQ scheduling API mac80211: Add airtime accounting and scheduling to TXQs cfg80211: Add airtime statistics and settings ath9k: Switch to mac80211 TXQ scheduling and airtime APIs drivers/net/wireless/ath/ath9k/ath9k.h | 14 -- drivers/net/wireless/ath/ath9k/debug.c | 3 drivers/net/wireless/ath/ath9k/debug.h | 8 - drivers/net/wireless/ath/ath9k/debug_sta.c | 54 ------ drivers/net/wireless/ath/ath9k/init.c | 3 drivers/net/wireless/ath/ath9k/recv.c | 9 - drivers/net/wireless/ath/ath9k/xmit.c | 245 ++++++++-------------------- include/net/cfg80211.h | 15 +- include/net/mac80211.h | 78 ++++++++- include/uapi/linux/nl80211.h | 17 ++ net/mac80211/agg-tx.c | 2 net/mac80211/cfg.c | 6 + net/mac80211/debugfs.c | 3 net/mac80211/debugfs_sta.c | 35 ++++ net/mac80211/ieee80211_i.h | 10 + net/mac80211/main.c | 5 + net/mac80211/sta_info.c | 42 +++++ net/mac80211/sta_info.h | 13 + net/mac80211/tx.c | 101 ++++++++++++ net/wireless/core.c | 2 net/wireless/nl80211.c | 50 ++++++ 21 files changed, 449 insertions(+), 266 deletions(-)