Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp88780pxa; Fri, 21 Aug 2020 01:50:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl12qszCZROWeLAycW8Lb6xEbaj8H/qEy+Vwf+bSUeRkZtaF+QwGKTWUmodtPyGKgHdKHt X-Received: by 2002:a17:906:2bdb:: with SMTP id n27mr18015ejg.12.1597999827479; Fri, 21 Aug 2020 01:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597999827; cv=none; d=google.com; s=arc-20160816; b=UCE3h5D2CdwcaBFbS0WTfeVl5LxZy7sRDQJHMNrBfKpVA1XeIU8RGPRlXGcMm7rkKC IdSEfPajvGrrGDMQiXXl4tIi4vA2IZkcV/MMfhfFRTM43kGqur/tPDDHmAJfBc0yKaqf UKf77+e8d3F2/EtJXc0ixD6lx7a90unZoWXpOrsq5Dm2WYpNrY6CdGPlUHCbVK24/OLb 3UEOwjACOus1efKeUh8XBlmPXzqPl1RwKuC6+EyGolERVdCg4fr0QzHZDqPQOF93dvIj 8ZMxeDdVYg4aWwY9sfcyRG4qNd8hcaSgvAfUI8u+1KCu8QZdIlhVvFTBu+VqPtqjPJEa LD5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AOnXIogeXZYi6SSNrogikUVvDl/uxvBl8vz5fnpP04k=; b=a+R/bAC/hY2kDAsuYhxqLVTKM4IM3Gr53+PhgMdYA+5Vme6wJV+LCz83Bnuieq4gfI 5aDZP9ZkH6TgZwMBO5WgvCMclfH8Yz/I3rSRpWuzfBhtTdMRlX4Tfq0Inlg39wMZfnDa 12yYrIUi4ZSgLAe2YZQflBEC1gGcN3JXKhhcXXTA9H0bBdQ3neK450zLk/NF3HvUtEvB HWkZWWuESoHznqX/VV7s2lX4nuc1k617oeDpMx+rFLXJkWXV4hmP/OE4CE/VuodkHxav z4eWFDacpn8mvee5KdFImPkGdMfesuKBuIQx8GPhp+ePMrd9YxH46aH75f+j7/85LZy2 tjKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=OYeY8FAs; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf23si718447ejb.498.2020.08.21.01.49.51; Fri, 21 Aug 2020 01:50:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=OYeY8FAs; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727902AbgHUItg (ORCPT + 99 others); Fri, 21 Aug 2020 04:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgHUItc (ORCPT ); Fri, 21 Aug 2020 04:49:32 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20FB2C061385 for ; Fri, 21 Aug 2020 01:49:32 -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=AOnXIogeXZYi6SSNrogikUVvDl/uxvBl8vz5fnpP04k=; b=OYeY8FAsVHMff5BtS7Qu2TKYYx ZI7Ddokh5S2dzgimDsoZGpHr1nWU2UGJRh2E1Qi2/nD34yy7KN3DaBunLdqiEcMrdkFrVNgbrbdIw 1rfzV2QYDOePx0aOULkv7bUXNhTSnfmMHG4/LksSmSg1sg53dSeoxlimE1EvFYAg+ip8=; 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 1k92jo-0005lO-QX; Fri, 21 Aug 2020 10:49:28 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH v3 00/13] mac80211 encapsulation offload / performance patches Date: Fri, 21 Aug 2020 10:49:13 +0200 Message-Id: <20200821084926.10650-1-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org v3: - fix sta pointer and skb info pointer in ieee80211_tx_status_ext skb free patch 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(-) -- 2.28.0