Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3245226lfo; Sun, 22 May 2022 23:44:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjW1qfwnKGsUIYTbIavw6dJzBdtqZkGIVf1fX9JfQhPeYIkr59PnVuSQtaVkOnE0UkIDd+ X-Received: by 2002:a17:90a:e202:b0:1df:95f4:ddb4 with SMTP id a2-20020a17090ae20200b001df95f4ddb4mr25240626pjz.127.1653288247973; Sun, 22 May 2022 23:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288247; cv=none; d=google.com; s=arc-20160816; b=yHRwtOwYw0wSRwsXwcescK92oUgKAD7dqm/Ae+pRx6WwNwTQZbkHWpnMUd37ci8xrI t3QAvhBZy8h3Ua5SVM4dLu+HXtYWJAU6uxve7BeQAI8+mWsj+XFDtCJ0KsAPtPduF8Fh AvhW1exlh2LKQOBvta/fbhuKdHsSHMOA+VH3j3EOReJPPeiB3ZhYOaH4NfESeer8jpFw mt8efOv5knR0clsE7fEOQFz95TOJNfMePircpnpBmUQMVt0LkSlRfdYLmHE0yuVlkDty Lp3ZnCxf0fpvRR2QN/H2XiztTN8zVi5LBoZsJ54/8/DljlNA2jDIRBfqvxVdiQH9IoHd skHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=4Fg5zITtvUq6V5iEzNuHa6qRupcjR2gyyrOpBlQHLpM=; b=QEi/ii9SNZUU/18RL0pMtO2RBbZUChb/PLBOukrETH4HO3rJivRL8FlMU8+9smWxr6 CdsUHn1pytl+XaeKiregZK8NnwzOEy41AgcpdgOcfJ4RRH9a09fzl+r6FCIadk/fbq3o aHtRCNbYYWiJh99dPlr4S0rFqItKt04Urn/NlZ0VaASYGnMvKEj5iUW6wCdIFdb9FKdQ GviEhsdIiv30288tIa3RUnIQgYOPZBkF968BhC/DBeo84G7SAggjAvA+OG1TIeckSxsB FrLOQc+fnbzImM10ftd60AUAtjm+QCtWxkA6JKGZqK7t2Z1p/JEi1mqrVvQuY0F+Qglr 04Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2BVJAEe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e17-20020a170902ef5100b00158d6dbbfc2si9000772plx.145.2022.05.22.23.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2BVJAEe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B74C3DA49; Sun, 22 May 2022 23:16:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242083AbiEVM2J (ORCPT + 68 others); Sun, 22 May 2022 08:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbiEVM2I (ORCPT ); Sun, 22 May 2022 08:28:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB30A3CA65 for ; Sun, 22 May 2022 05:28:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45A1F60FBE for ; Sun, 22 May 2022 12:28:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FDE3C385AA; Sun, 22 May 2022 12:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653222486; bh=Gr6lYAsULYInKXakt5MSXApQOLKEm9j6nKisVE6yrMg=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=b2BVJAEeOC+9I1zZfh0k1UCp7EJHWSHs1NSRhe9dsY/AiIH7RDpSm69Ba6cNTPrDJ Kh3fVyRoIj72dNbEHtrZQyPWiZJevloeT/mpOA7Ox8zDDYaa717VEAgOHSQgYvk3H+ kvtubdfDgN6FXBtF7o+/HumxrquwnmtmfmH3NSWh63zmMdZxFfOoHkG4pSXaeugcx5 MjbWofwIiyPKIZ26oWklLqp0x0BHTfxhR3paKrFNnuEkn14wp4cJyl4EEqYW5f0eim ddbUI6Gdcat1RcfZg7DwxDLaW+q8fZ/b2jPXrOpMh8BNBc5sktDkL5X8bUaYYiya+m evzhyDGFvCJBg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 1/4] ath10k: improve tx status reporting From: Kalle Valo In-Reply-To: <20220516032519.29831-2-ryazanov.s.a@gmail.com> References: <20220516032519.29831-2-ryazanov.s.a@gmail.com> To: Sergey Ryazanov Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, Edward Matijevic , John Crispin , =?utf-8?b?T2xkxZlpY2ggSmVkbGnEjWth?= , Tom Psyborg , Vasanthakumar Thiagarajan , Zhijun You User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165322248212.774.8451941042648724092.kvalo@kernel.org> Date: Sun, 22 May 2022 12:28:04 +0000 (UTC) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Sergey Ryazanov wrote: > We use ieee80211_tx_status() to report each completed tx frame. > Internally, this function calls sta_info_get_by_addrs(), what has a > couple of drawbacks: > 1. additional station lookup causes a performance degradation; > 2. mac80211 can not properly account Ethernet encapsulated frames due > to the inability to properly determine the destination (station) MAC > address since ieee80211_tx_status() assumes the frame has a 802.11 > header. > > The latter is especially destructive if we want to use hardware frames > encapsulation. > > To fix both of these issues, replace ieee80211_tx_status() with > ieee80211_tx_status_ext() call and feed it station pointer from the tx > queue associated with the transmitted frame. > > Tested-on: QCA9888 hw2.0 PCI 10.4-3.9.0.2-00131 > Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00157-QCARMSWPZ-1 > > Signed-off-by: Sergey Ryazanov > Tested-by: Oldřich Jedlička # TP-Link Archer C7 v4 & v5 (QCA9563 + QCA9880) > Tested-by: Edward Matijevic # TP-Link Archer C2600 (IPQ8064 + QCA9980 10.4.1.00030-1) > Tested-by: Edward Matijevic # QCA9377 PCI in Sta mode > Tested-by: Zhijun You # NETGEAR R7800 (QCA9984 10.4-3.9.0.2-00159) > Signed-off-by: Kalle Valo 4 patches applied to ath-next branch of ath.git, thanks. 2587d5198aa5 ath10k: improve tx status reporting 70f119fb82af ath10k: htt_tx: do not interpret Eth frames as WiFi a09740548275 ath10k: turn rawmode into frame_mode af6d8265c47e ath10k: add encapsulation offloading support -- https://patchwork.kernel.org/project/linux-wireless/patch/20220516032519.29831-2-ryazanov.s.a@gmail.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches