From patchwork Wed Jun 19 08:04:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 11003667 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 6A33B924 for ; Wed, 19 Jun 2019 08:05:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A94327F54 for ; Wed, 19 Jun 2019 08:05:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D67928B1C; Wed, 19 Jun 2019 08:05:04 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB0C027F54 for ; Wed, 19 Jun 2019 08:05:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731072AbfFSIFD (ORCPT ); Wed, 19 Jun 2019 04:05:03 -0400 Received: from nbd.name ([46.4.11.11]:38486 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbfFSIFD (ORCPT ); Wed, 19 Jun 2019 04:05:03 -0400 Received: from pd95fd3e4.dip0.t-ipconnect.de ([217.95.211.228] helo=bertha.fritz.box) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1hdVaW-0005zH-6k; Wed, 19 Jun 2019 10:05:00 +0200 From: John Crispin To: Johannes Berg , Kalle Valo Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, John Crispin Subject: [PATCH V7 0/2] mac80211: add 802.11 encapsulation offloading Date: Wed, 19 Jun 2019 10:04:55 +0200 Message-Id: <20190619080457.17135-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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 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 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 | 100 ++++++++++++ net/mac80211/key.c | 7 + net/mac80211/main.c | 4 +- net/mac80211/status.c | 79 ++++++++++ net/mac80211/tx.c | 187 ++++++++++++++++++++++- 14 files changed, 507 insertions(+), 31 deletions(-)