From patchwork Fri Aug 21 04:19:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 259553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15F50C433E1 for ; Fri, 21 Aug 2020 04:20:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E82C920855 for ; Fri, 21 Aug 2020 04:20:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b="oDuOJuiG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726119AbgHUEUI (ORCPT ); Fri, 21 Aug 2020 00:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbgHUEUG (ORCPT ); Fri, 21 Aug 2020 00:20:06 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD603C061386 for ; Thu, 20 Aug 2020 21:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WK61CoSkyOL4dv/L5xauqEYwrEMONUpdDyzw94fklX4=; b=oDuOJuiGzkafI4mfU9sXebiAgI LhCe6krwaynADq8U6eJGyAU55uMWq75ED88mdbEaAV79+3UHpTpUL24z/D24DnM08ElNqQa9TC1au nN8PLFSsV/TYE3dxYqxY/AapSJrnFa7sdBRGsEzvs95JGXdqpvFCQU1Wc2Ds1eUa8jyY=; Received: from p5b206497.dip0.t-ipconnect.de ([91.32.100.151] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1k8yX5-0005s7-Gx; Fri, 21 Aug 2020 06:20:03 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH v2 00/13] mac80211 encapsulation offload / performance patches Date: Fri, 21 Aug 2020 06:19:48 +0200 Message-Id: <20200821042001.23388-1-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org v2: - add cover letter - fix netdev ops for vlan interfaces - make multicast traffic fall back to non-offload path to support sw crypto - use ieee80211_tx_status_ext as replacements for ieee80211_free_txskb (the latter does not work with encap offload packets) - add api for bulk free after tx status Felix Fietkau (13): mac80211: rework tx encapsulation offload API mac80211: reduce duplication in tx status functions mac80211: remove tx status call to ieee80211_sta_register_airtime mac80211: optimize station connection monitor mac80211: swap NEED_TXPROCESSING and HW_80211_ENCAP tx flags mac80211: unify 802.3 (offload) and 802.11 tx status codepath mac80211: add missing queue/hash initialization to 802.3 xmit mac80211: check and refresh aggregation session in encap offload tx mac80211: support using ieee80211_tx_status_ext to free skbs without status info mac80211: extend ieee80211_tx_status_ext to support bulk free mac80211: notify the driver when a sta uses 4-address mode mac80211: skip encap offload for tx multicast/control packets mac80211: set info->control.hw_key for encap offload packets drivers/net/wireless/ath/ath11k/dp_tx.c | 4 +- drivers/net/wireless/ath/ath11k/mac.c | 61 ++++--- include/net/mac80211.h | 49 +++++- net/mac80211/cfg.c | 6 + net/mac80211/debugfs.c | 1 + net/mac80211/driver-ops.h | 29 ++++ net/mac80211/ieee80211_i.h | 5 +- net/mac80211/iface.c | 204 ++++++++++++++++------ net/mac80211/key.c | 23 +-- net/mac80211/mesh_hwmp.c | 4 +- net/mac80211/mesh_ps.c | 2 +- net/mac80211/mlme.c | 56 +++--- net/mac80211/rx.c | 11 +- net/mac80211/sta_info.h | 2 - net/mac80211/status.c | 218 +++++++++--------------- net/mac80211/trace.h | 33 ++++ net/mac80211/tx.c | 96 +++++------ 17 files changed, 451 insertions(+), 353 deletions(-)