Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4190361pxk; Tue, 8 Sep 2020 13:04:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/HrFtE/h/i4dbWdE4NBq4Y+vr8HqH3kodzGHQsigf730Im1M2Jt8cgl8fBrJw7FmWeYDA X-Received: by 2002:a17:906:b2c3:: with SMTP id cf3mr102703ejb.387.1599595498305; Tue, 08 Sep 2020 13:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599595498; cv=none; d=google.com; s=arc-20160816; b=ONHSeEZQ+WADpsLoivFojCcrABLBIa6LSxM59rqaeHj16FiYn4qHwuqc13VT1jO8jy YEYT6VpmD10T6C2GD9eH+l8zXgVo32fsCm4mZ60RYa+Rk2ca1XHLQ4v54EUhp9LXAjmI IIVLV0x+LDLxtwowrmeRrzOjYxAc8Otuc8QFLMA5UUV0wnmCuXAeZEFnwPSJVYcm48c+ hIcIGr6CasBwm6nUSQ2dAXWoKb75jQIfezD7x6gCG+Xl04dBgpTx7hyU6/VMm7tzvl5Z +Ngo2DMHIJuV2e643gbYHl8O2nWmFDTsHGMnKLUWYWcf/+XcAmtO/jJ7xvUZTSiZT98q Mrog== 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=A7yXgNYE7yBLGT3eB1jHUtOeKcGlCa4RsyEFXxnSJd0=; b=oJLRktq5C2F7e6rWucD/7A27fk+Mf0Z/RKtzv7/O6AX2my7Wp58IlPZ4FncwzdfRgO X1T38MhFGOM10PL69+Tqx9Fh2jb3iGOLwrj2Cojs/YdxLgfNYbNBtV1U+Hnd9SFBziDT NucSK2xI2bhCmolQhf83mj0HuGBi9gNs842VUsbDaInAgdfFjkIqOA0B+p8dQ1tFr+3X P17dznCZPSYYd0eOgp+0BHZx93Y09vtnsdQJhfkMcsB9a+FzjRf3UG/0vTVAHf0NBeou vm/Iy8SkaZIMNfy2jX9b3MDv/qAyLfXfPvj9uCFytLWmW0/c5yNYY6oCUNrUx8B46Rpy Y/Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=kaGupuTr; 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 e13si39537edu.27.2020.09.08.13.04.34; Tue, 08 Sep 2020 13:04:58 -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=kaGupuTr; 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 S1732651AbgIHUC0 (ORCPT + 99 others); Tue, 8 Sep 2020 16:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730487AbgIHPek (ORCPT ); Tue, 8 Sep 2020 11:34:40 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99A3DC061365 for ; Tue, 8 Sep 2020 05:37:14 -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=A7yXgNYE7yBLGT3eB1jHUtOeKcGlCa4RsyEFXxnSJd0=; b=kaGupuTraFOjg8sbaetIVr/FgH BcshdKlfOEhMQF6h4VBE+NsSFZIxZVW4Tz2VB/hpHuZK8oxMA+wgQ7OWRji6ToFsdSa8qZZLbrOo+ 6lbDEgDpyndW4VPe3lW30lAvGaK4LQ3u9XywZ2ojYloFlC8LtfWlmLi+AVQHnDG9PZQE=; Received: from p4ff13fcb.dip0.t-ipconnect.de ([79.241.63.203] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kFcrw-00050i-E3; Tue, 08 Sep 2020 14:37:04 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH v4 00/14] mac80211 encapsulation offload / performance patches Date: Tue, 8 Sep 2020 14:36:48 +0200 Message-Id: <20200908123702.88454-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 v4: - reorder patches - instead of disabling offload when tkip or sw crypto is used, fall back in the tx handler - add patch to remove a forward declaration - remove unnecessary checks for p2p go/client and add a comment instead 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 (14): mac80211: add missing queue/hash initialization to 802.3 xmit mac80211: check and refresh aggregation session in encap offload tx mac80211: skip encap offload for tx multicast/control packets mac80211: set info->control.hw_key for encap offload packets 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: 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: reorganize code to remove a forward declaration 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 | 1 + net/mac80211/debugfs.c | 1 + net/mac80211/driver-ops.h | 29 + net/mac80211/ieee80211_i.h | 5 +- net/mac80211/iface.c | 1573 ++++++++++++----------- net/mac80211/key.c | 15 - 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 | 219 ++-- net/mac80211/trace.h | 33 + net/mac80211/tx.c | 113 +- 17 files changed, 1119 insertions(+), 1059 deletions(-) -- 2.28.0