Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp203776imn; Wed, 27 Jul 2022 20:26:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tEVJZb8oQBCw7HOSAh40geUuk1DNMZ5R9vcm7cPkg9r95C2rz/J/GHx19jXTi+jfawC0Qi X-Received: by 2002:a17:90b:1e43:b0:1f2:5dd5:f1a8 with SMTP id pi3-20020a17090b1e4300b001f25dd5f1a8mr8046042pjb.144.1658978808234; Wed, 27 Jul 2022 20:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658978808; cv=none; d=google.com; s=arc-20160816; b=jYugVVj60P3m8tyWwn7M7phKM+49E02bn8b4iKhgzvpkc+YvfOzj9/cBgfBI9n0cmC YtFykdBraFLveL69zgG4McKRalpTi0o1nbAO+vfvQ8WQyAQVDgQhKL1dtYGpIx+PmAwQ oodE2SWgmlKuJ1cO+AxdKS1+i4mzKjKiQAL/w1fQ2VPRFkCNF7V8zJE5sCExkc8YI4qJ VeP/NUS23mUTYvpD5G1N5nf3qv3GmJIEnUHW7dr5/tE4ulD4wj8La/0Slp8p3libDDXQ dwqu6JUoIjex0ZU4GygUB/WAO5yjR/mPP6raD3yi0gVMQXkRZrJmdX7e8GJIurR4J+1G UGIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=+HeA7Ason+jqyJ1JXrnxPeNBUxDi71KGqGjvvLltOzA=; b=y2G78wZUy2zvmkLcFQ/lht23hGlTtWg5Z++ON4r4XqIXPvfaQBuV9Uf3nnJGF3SJ5a TAOeQ78KGsyLp3iJPLHwiKEt9+V8KNQUJlM5YQMz8CywB7MgPH/LqdO22vxnDkJWodZA Ymsx8CShHf3P5iyvK12Q3waPsMvkCirbWpWtCBc8lYlUzkrP9AKSnbkkdXNNrLPtQSDa kx5NxybkfaOQHHO1bvUxZQErvcHJF95eDLwLIAiwPibcDY6LYNRCOPLqCm4nylay1k1z zRkmq0QX4GeDI6bg2OUaWTwnVsxoUXpaxkspOMzhrJAtYIec3EMJV57f6U1VJGLUZm5h kolA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020a170902821600b0016c09d28af1si20484640pln.621.2022.07.27.20.26.33; Wed, 27 Jul 2022 20:26:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236208AbiG1DVJ (ORCPT + 65 others); Wed, 27 Jul 2022 23:21:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237821AbiG1DUs (ORCPT ); Wed, 27 Jul 2022 23:20:48 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 298825A142 for ; Wed, 27 Jul 2022 20:20:47 -0700 (PDT) X-UUID: 37c1d49e7a65438cbd091a2a9c94c5ae-20220728 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:f00b0566-d9b4-4e0d-a378-f7b7043efc39,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:45,FILE:0,RULE:Release_Ham,ACT ION:release,TS:45 X-CID-INFO: VERSION:1.1.8,REQID:f00b0566-d9b4-4e0d-a378-f7b7043efc39,OB:0,LOB: 0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:45,FILE:0,RULE:Release_Ham,ACTIO N:release,TS:45 X-CID-META: VersionHash:0f94e32,CLOUDID:c1e2868e-b90a-4310-9e08-cd036292eb9e,C OID:dc5365b0e233,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,QS:nil,BEC:nil,COL:0 X-UUID: 37c1d49e7a65438cbd091a2a9c94c5ae-20220728 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1750394842; Thu, 28 Jul 2022 11:20:42 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 28 Jul 2022 11:20:41 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 28 Jul 2022 11:20:41 +0800 Message-ID: <7f5284ae5f78f59dcf0d1cf559bf444e237eadbe.camel@mediatek.com> Subject: Re: [PATCH 05/12] wifi: mt76: mt7915: report tx-retries From: Ryder Lee To: , CC: Date: Thu, 28 Jul 2022 11:20:41 +0800 In-Reply-To: <20220727230122.29842-5-greearb@candelatech.com> References: <20220727230122.29842-1-greearb@candelatech.com> <20220727230122.29842-5-greearb@candelatech.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham 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 On Wed, 2022-07-27 at 16:01 -0700, greearb@candelatech.com wrote: > From: Ben Greear > > mac80211 stack will only report tx-status for skb claiming to be > ampdu heads, so lie a bit in mt7915 and set the flag so that mac80211 > will record status for each skb. > > mt7915 appears to report retry status on an individual per-skb > manner, > so that method above seems to work. > > Re-constitute the txinfo status rate info so that the rix and flags > is also at least close to correct. No direct way to report HE > rates that way, so mac80211 might could use some tweaking in > the ieee80211_tx_status_ext to take both info and status->rate > into account. > > Signed-off-by: Ben Greear > --- > drivers/net/wireless/mediatek/mt76/mac80211.c | 4 + > drivers/net/wireless/mediatek/mt76/mt76.h | 5 + > .../net/wireless/mediatek/mt76/mt7915/init.c | 1 + > .../net/wireless/mediatek/mt76/mt7915/mac.c | 95 > ++++++++++++++++++- > .../net/wireless/mediatek/mt76/mt7915/mac.h | 6 +- > .../net/wireless/mediatek/mt76/mt7915/main.c | 4 + > .../net/wireless/mediatek/mt76/mt7921/main.c | 4 + > drivers/net/wireless/mediatek/mt76/tx.c | 18 +++- > 8 files changed, 129 insertions(+), 8 deletions(-) Hi Ben, Looks like we have a similar goal but I don't use txs_for_no_skb. What about directly switching to PPDU bases reporting (it should include MPDUs total/failed/retries counts/bytes) and using .sta_statistics? I think this might simplify the codes and can use mac80211 ethtool as is. I made these changes for .net_fill_forward_path (WED) cases. We're doing some throughput tests. https://pastebin.com/raw/qCzNNDzw https://pastebin.com/raw/25Vsk2xs Ryder