From patchwork Tue Jun 18 06:28:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 11000943 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 5E700112C for ; Tue, 18 Jun 2019 06:28:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BE3E28A10 for ; Tue, 18 Jun 2019 06:28:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F03228A13; Tue, 18 Jun 2019 06:28:25 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 AF76528A10 for ; Tue, 18 Jun 2019 06:28:24 +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=jCP2VH2K3XZs2NS9S8V9i9U+9cujjOSkrYyn81FezOg=; b=N3VVQV9MIx8r62 M4UlD39HZGxrtWXdwjrSjrBfJJT0KGX9Ulj4wqyvjXLo9Nh26mKP0mJnn6JgWcDG7hzsEOcnS/XXw wWK282XpSsLLuI7Czmf+RI3eDQz6UsXeXAhJIuc0XvOQMy/Q6jHda9CuSj1MBuOH+HZJYNz938K0K QskV0/VhdH08j9bppeaT5GLZkKjUsvWPUr5Blqcn8Ak9QIcrWYDDKzuQaPjR93WIDfNfSK4UB+Uxo GlewGZI3cxhRHyR5++s7E4tZfha5QS9tRpHP1xgisHJq8WMjCA0JxyXomMKBoS+g8oKhgUJjxDqAZ MFhqHN6hC9vlWngrNQgw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hd7bS-0006gY-EB; Tue, 18 Jun 2019 06:28:22 +0000 Received: from nbd.name ([2a01:4f8:221:3d45::2]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hd7bP-0006fV-8V for ath10k@lists.infradead.org; Tue, 18 Jun 2019 06:28:20 +0000 Received: from p5dcfbabb.dip0.t-ipconnect.de ([93.207.186.187] helo=bertha.fritz.box) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1hd7bJ-0000gk-Oz; Tue, 18 Jun 2019 08:28:13 +0200 From: John Crispin To: Johannes Berg , Kalle Valo Subject: [PATCH V6 0/2] mac80211: add 802.11 encapsulation offloading Date: Tue, 18 Jun 2019 08:28:05 +0200 Message-Id: <20190618062807.17158-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-20190617_232819_459619_C4ADFB0F X-CRM114-Status: UNSURE ( 8.80 ) X-CRM114-Notice: Please train this message. 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 X-Virus-Scanned: ClamAV using ClamSMTP This series picks up prior work from QCA. The patch is currently shipped inside QSDK as part of the wlan-open package. The series tries to address all feedback from the V2 -> https://patchwork.kernel.org/patch/9602585/ 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 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 V5 * implement comments from Johannes Changes in V6 * the conditional masking out monitor support was inverse Vasanthakumar Thiagarajan (2): mac80211: add hw 80211 encapsulation offloading support ath10k: add tx hw 802.11 encapusaltion offloading suppor 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 | 70 +++++++-- drivers/net/wireless/ath/ath10k/txrx.c | 11 +- include/net/mac80211.h | 25 +++ net/mac80211/cfg.c | 6 + net/mac80211/debugfs.c | 1 + net/mac80211/ieee80211_i.h | 10 ++ net/mac80211/iface.c | 84 ++++++++++ net/mac80211/key.c | 7 + net/mac80211/main.c | 10 +- net/mac80211/status.c | 79 ++++++++++ net/mac80211/tx.c | 187 ++++++++++++++++++++++- 14 files changed, 495 insertions(+), 33 deletions(-)