From patchwork Sat Oct 20 11:05:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 10650385 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E4D3890 for ; Sat, 20 Oct 2018 11:06:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC51C285EB for ; Sat, 20 Oct 2018 11:06:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCCEF285EF; Sat, 20 Oct 2018 11:06:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6815D285EB for ; Sat, 20 Oct 2018 11:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=MQ2PPMlCLJN6hR1uJvfNPHNYMPJrhyH8mXLKqBdTA9U=; b=ACVBfEBKwHAL8x Zcq1WnpnlUrBFwi96xgPVOcQnzMUO1PTWMSLLKqvSRlysE1uxH0h9RROnn6FQclwfpF6vrtVKgnAT i1ADCN1INbakWGgrG/ELXJTdnIAZCksKRqPL9EVu2VHtB6Y6iHbO4Bq8KzXpV7B4fydGQi5Rd4fhZ Klclv0ju0ze3PJP2U263hED9HdJbjxnoZOABuOOAqa3ioGOpXgtaNORQX6S829+J1YPs6gwucJyWS vnWoQNYXZxtRerVx48py3yyBANnD/cuLbC7bABO0pL9a6BddYq6j8/A7HEZmOzUAfxBsEGUEc8d4d VOAP7pcaIWn7LUMdumtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDp5h-0008UY-RG; Sat, 20 Oct 2018 11:06:45 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gDp4o-00080z-7U for ath10k@lists.infradead.org; Sat, 20 Oct 2018 11:06:04 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DEB0460866; Sat, 20 Oct 2018 11:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1540033538; bh=eYkMGWiMgr7vHjUfNeOoa/YWB+kb1Ns3Oj0QPje5lFg=; h=From:To:Cc:Subject:Date:From; b=BVwM+it6MnPR0RY7ql92CewKycpAwKk+3Rgsvl0hJOSk0xp9mh2YzfSjm6MWiq+Y8 MSHgNbWNjLm0LZpZXzhcUAHRKBB7ASlSXITIxDLC33aYff/Rtc87Rzrp6m/5BNija0 kNS+zo1GU6VlSv+6E1aFuuwivlfzNpTJCIRkRKiU= Received: from smtp.codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: rmanohar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 519B7604BE; Sat, 20 Oct 2018 11:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1540033538; bh=eYkMGWiMgr7vHjUfNeOoa/YWB+kb1Ns3Oj0QPje5lFg=; h=From:To:Cc:Subject:Date:From; b=BVwM+it6MnPR0RY7ql92CewKycpAwKk+3Rgsvl0hJOSk0xp9mh2YzfSjm6MWiq+Y8 MSHgNbWNjLm0LZpZXzhcUAHRKBB7ASlSXITIxDLC33aYff/Rtc87Rzrp6m/5BNija0 kNS+zo1GU6VlSv+6E1aFuuwivlfzNpTJCIRkRKiU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 519B7604BE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rmanohar@codeaurora.org Received: by smtp.codeaurora.org (sSMTP sendmail emulation); Sat, 20 Oct 2018 04:05:36 -0700 From: Rajkumar Manoharan To: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [PATCH 0/6] Move TXQ scheduling and airtime fairness into mac80211 Date: Sat, 20 Oct 2018 04:05:28 -0700 Message-Id: <1540033534-11211-1-git-send-email-rmanohar@codeaurora.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181020_040550_486820_CB8E731A X-CRM114-Status: GOOD ( 11.01 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rajkumar Manoharan Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Toke, It is been a while since mac80211 TXQ discussion started. Here is the consolidated series of mac80211, ath9k and ath10k changes to move TXQ scheduling and airtime fairness into mac80211. The major changes w.r.t 5th RFC version are in may_transmit() API. Whenever the driver checks deficit for given TXQ, the list will be reordered so that driver/firmware RR quickly becomes in sync with mac80211 list. Also airtime tasklet approach cumbersome and causing regression in multi client performance. - Removed airtime kickout tasklet - Reworked on ieee80211_txq_may_transmit() API - Provided option to configure driver specific default airtime. - Bundled ath10k changes along with this series. -Rajkumar Rajkumar Manoharan (2): ath10k: migrate to mac80211 txq scheduling ath10k: reporting estimated tx airtime for fairness Toke Høiland-Jørgensen (4): mac80211: Add TXQ scheduling API cfg80211: Add airtime statistics and settings mac80211: Add airtime accounting and scheduling to TXQs ath9k: Switch to mac80211 TXQ scheduling and airtime APIs drivers/net/wireless/ath/ath10k/core.c | 2 - drivers/net/wireless/ath/ath10k/core.h | 8 +- drivers/net/wireless/ath/ath10k/htc.h | 1 - drivers/net/wireless/ath/ath10k/htt_rx.c | 9 ++ drivers/net/wireless/ath/ath10k/mac.c | 155 +++++++++++------- drivers/net/wireless/ath/ath10k/txrx.c | 4 + 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 | 70 --------- drivers/net/wireless/ath/ath9k/init.c | 3 +- drivers/net/wireless/ath/ath9k/recv.c | 9 +- drivers/net/wireless/ath/ath9k/xmit.c | 244 +++++++++-------------------- include/net/cfg80211.h | 10 +- include/net/mac80211.h | 118 +++++++++++++- include/uapi/linux/nl80211.h | 15 ++ net/mac80211/agg-tx.c | 2 +- net/mac80211/cfg.c | 3 + net/mac80211/debugfs.c | 3 + net/mac80211/debugfs_sta.c | 50 +++++- net/mac80211/driver-ops.h | 9 ++ net/mac80211/ieee80211_i.h | 12 ++ net/mac80211/main.c | 9 ++ net/mac80211/sta_info.c | 54 ++++++- net/mac80211/sta_info.h | 13 ++ net/mac80211/status.c | 6 + net/mac80211/tx.c | 140 ++++++++++++++++- net/wireless/nl80211.c | 28 ++++ 28 files changed, 646 insertions(+), 356 deletions(-)