From patchwork Wed Aug 8 10:40:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wen Gong X-Patchwork-Id: 10559735 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 B7A2914E2 for ; Wed, 8 Aug 2018 10:40:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A35FC2A639 for ; Wed, 8 Aug 2018 10:40:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9747F2A632; Wed, 8 Aug 2018 10:40:57 +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 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 30DBD2A632 for ; Wed, 8 Aug 2018 10:40:57 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=lKRYz/RcfB62an5TXfhPkq4Y7q2C0xy3/1SWTe/2Poc=; b=d+S gAqEja+W/H6HJEIoak9gHFwR5PSHN1uSAncZkf5MsTPyRmE/5fGvHEvmKwBf7U4NzJN8Z8VN45eie PMnzNQpBnhiAeL3n8o310oB40F3D5wQypMiOGDqT3Can8q7Z4VoqZ3hOHGG6CBstlkigdY0kRx55k 0nG034Y86XdwzjytQdaU6BfF/vOp5hzd9IKsjeYfuo1ne6GaaXmWudVXyBogac3b1d/z0144U8U4q cHo/Zd215iLvdcsGwpaQZ8lq0xVoXQezhs50eu15rr4xmPSi4Rs2n3BDG3mrNeYThHDAmd/UuNZj0 PXAoL8Mhx/ZvENG5eTjblA1RpY+WEgQ==; 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 1fnLtY-0002c7-IX; Wed, 08 Aug 2018 10:40:48 +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 1fnLtU-0002aZ-U7 for ath10k@lists.infradead.org; Wed, 08 Aug 2018 10:40:46 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 087B760B1A; Wed, 8 Aug 2018 10:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533724832; bh=n8/1xgIdSaz3d1aKfjz+IQr5y3GmqKXYKih+5kc46cU=; h=From:To:Cc:Subject:Date:From; b=HLGEovSWNOnBw4u1ThWHf3YfGs8/44YPzrmfoIAsz1O6y7swMfqSdBJPtoz/s6fVm BW6jt+8nbs9dQ+L0f3NU1/SlODEECUyQz/Z2a5QYAzb+dzfqr2b8zA/ZAy01p9xVs5 HEGDRI2cmwt7lyFfUKBZ2wOt7Errk8F8bMPezfN0= Received: from localhost.localdomain (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wgong@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id AA19960AFF; Wed, 8 Aug 2018 10:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533724831; bh=n8/1xgIdSaz3d1aKfjz+IQr5y3GmqKXYKih+5kc46cU=; h=From:To:Cc:Subject:Date:From; b=RKfmBaci3OH6lT5b/8gdT+7w00DIKDieC80YdPac4xt+daj5sKGFtGzoAcbmXGinS HZfHmDvWwWU2FDbgsrnmaIQ90XAAp1k8h7IJdhQbEGyBDNiDy67/dLAMH6ZZuC3U3g IiWXNnwprFXVTb0FWEoZjlMh8hDyk9O52C0TxR8I= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AA19960AFF 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=wgong@codeaurora.org From: Wen Gong To: ath10k@lists.infradead.org, johannes@sipsolutions.net Subject: [PATCH v2 0/2] Change sk_pacing_shift in ieee80211_hw for best tx throughput Date: Wed, 8 Aug 2018 18:40:00 +0800 Message-Id: <1533724802-30944-1-git-send-email-wgong@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180808_034045_008319_84FE597E X-CRM114-Status: UNSURE ( 7.18 ) X-CRM114-Notice: Please train this message. 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: linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a field for ath10k to adjust the sk_pacing_shift, mac80211 set the default value to 8, and ath10k will change it to 6. Then mac80211 will use the changed value 6 as sk_pacing_shift since 6 is the best value for tx throughput by test result. Wen Gong (2): mac80211: Change sk_pacing_shift saved to ieee80211_hw ath10k: Set sk_pacing_shift to 6 for 11AC WiFi chips drivers/net/wireless/ath/ath10k/core.c | 6 ++++++ drivers/net/wireless/ath/ath10k/hw.h | 3 +++ drivers/net/wireless/ath/ath10k/mac.c | 4 ++++ include/net/mac80211.h | 5 +++++ net/mac80211/main.c | 2 ++ net/mac80211/tx.c | 2 +- 6 files changed, 21 insertions(+), 1 deletion(-)