From patchwork Tue Oct 29 09:13:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 11217479 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A807A15AB for ; Tue, 29 Oct 2019 09:13:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 68B9620717 for ; Tue, 29 Oct 2019 09:13:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bDOdlWHE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68B9620717 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phrozen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org 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=g6XdOfsUmSif6nLGRAwdkFRlFy9LpYCWidBlfswwDns=; b=bDOdlWHEOs9DlE u1YU8ScUBZXBTKytQLKZAA+59SOvy1UtkpIJ+zRw3oajUPV+yGSoqc9w65iNCk0vscATWkh1ht9xu S+WcgNC6avgVeGCpM+1HPOLEnfD4MrEQNRjRbmOTlPab0FkaPR6rpUB2UMbzze17Bm3CfdFdJ4dtC 4mDJN4TtE7lRcje35cjQdvA/ra+ko8184NgWBDpmqtAKBiRfGiNUpahH7G2qldrtnfSClJ6x0awIT yyvk4DpL61rPEtNv5Wu2knewFk2DdophIK7W9cwEO3RfvOfTq37FGGDdoBE/YNFpACEYz7ra0/qCv a68iK9ZmQUOhMFofEqtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iPNYz-0000aG-LX; Tue, 29 Oct 2019 09:13:17 +0000 Received: from nbd.name ([2a01:4f8:221:3d45::2]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iPNYw-0000Yl-4r for ath10k@lists.infradead.org; Tue, 29 Oct 2019 09:13:15 +0000 Received: from p5dcfbe82.dip0.t-ipconnect.de ([93.207.190.130] helo=bertha.lan) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1iPNYs-0005ZW-Q4; Tue, 29 Oct 2019 10:13:10 +0100 From: John Crispin To: Johannes Berg Subject: [PATCH V9 0/3] mac80211: add 802.11 encapsulation offloading Date: Tue, 29 Oct 2019 10:13:01 +0100 Message-Id: <20191029091304.7330-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191029_021314_349331_5CA29431 X-CRM114-Status: GOOD ( 10.91 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, John Crispin Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org This series picks up prior work from QCA. The patch is currently shipped inside QSDK as part of the wlan-open package. Changes in V9 * implement comments from Johannes * add tx status reporting * let the driver decide if tx frag will break encap mode * use true/false for bool values * move use_4addr check to driver Changes in V8 * fix double locking when setting frag threshold Changes in V7 * dont mask out monitor support when encap is available. Instead turn encap of if a monitor device is brought up or already present Changes in V6 * the conditional masking out monitor support was inverse Changes in V5 * implement comments from Johannes Changes in V4 * disable encap when TKIP is used instead of refusing TKIP * use a flag inside tx_info instead of an extra element * move 4addr detection into ieee80211_set_hw_80211_encap() * ieee80211_tx_dequeue() was dropping out to early Changes in V3 * rebase on latest kernel * various code style clean ups * give some of the variables and functions more obvious names * move the code that disables support for non-linear frames to the core * disable monitor and tkip support John Crispin (3): mac80211: move store skb ack code to its own function mac80211: add hw 80211 encapsulation offloading support ath10k: add tx hw 802.11 encapusaltion offloading support drivers/net/wireless/ath/ath10k/core.c | 11 ++ drivers/net/wireless/ath/ath10k/core.h | 3 + drivers/net/wireless/ath/ath10k/htt_tx.c | 24 ++- drivers/net/wireless/ath/ath10k/mac.c | 76 ++++++-- drivers/net/wireless/ath/ath10k/txrx.c | 11 +- include/net/mac80211.h | 39 ++++ net/mac80211/debugfs.c | 1 + net/mac80211/ieee80211_i.h | 9 + net/mac80211/iface.c | 68 +++++++ net/mac80211/key.c | 7 + net/mac80211/status.c | 74 +++++++ net/mac80211/tx.c | 233 ++++++++++++++++++++--- 12 files changed, 506 insertions(+), 50 deletions(-)