Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp119427lqo; Wed, 27 Mar 2024 08:25:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaIAjY9RsnWJoCI84p382akpGDPX4EVrqB4SLs9MuIR8thr2JmkYX5inOAbJvJIyQOQAEqVT21XKzxj8XRxVgCt+OE5sYq6pUA8Zq+qA== X-Google-Smtp-Source: AGHT+IE8UmIGmhW0Y4PwOGl+bkee0nGxP2CIdtqJLo7Xx10DwpOX1wtjZ85eSM/bnaR6F9R2OVA8 X-Received: by 2002:a17:906:bc9a:b0:a4a:33e4:bcae with SMTP id lv26-20020a170906bc9a00b00a4a33e4bcaemr2192803ejb.30.1711553121761; Wed, 27 Mar 2024 08:25:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711553121; cv=pass; d=google.com; s=arc-20160816; b=x1YJfJWRVLCjT/GN1qRidJQFC9rBL3FIWQdW57u5Ubnrl4q/lLFQk0kO34H7r1aScl DT2l1x+qQwxbUEtvOPz6gNCRWfivP7fegrlgQ9ZfPJhjpvUZNoN+AKn4Vu1pSlS6/N+q Km5MWfpRIdKOM2T0bi698IUr6aHwiJjWGTMEjF28WAh5oCQOXnhRDUTZ67YvsXhRhzAO gTDsyH0hiFXoBQCIc+kyGBBR6JV0xFKoUCKtkEQV2GGQm+n0/8oc9Tg+KSVhVwYNuXB9 ZLF5T1e/G7/emLmT0baXklIJJtU03YsSN5yYuo8tY/cCbs923LlyHaYEK+UhgO+GER2W aHxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=mzk+bgPSkQUzL/vnXJBmrg/umyndJWoEggObcfG9yAE=; fh=0OEkBZJWh2EoLrnGkjbuZAiq0PriD/YsjqQwdB2R2qo=; b=pEi6Xf2jSeMKtYjOEi3RrKeUtGB4VPwyxytWsElpK8HBf7OP8CX+koXavm9ZMVVM9J 3amyiVk9Qwm79ZA5yZpYhu9eKEbMJqZ6vAcNdQo+4ZJLK1vzO0GsXWvucLex2fFOuO0C /UNIM7Ne3+EAd2UARx4fbS6beJySe3Lp2zVLES+dj/J1+wY5faT8pOC1haLgoJTl1Zyl TmJWzRwr8iMr05mh+gEMdRqnaabLv6nPvIF3NOOQndiLB2N3a9VxQOHcM4QtYiNvBBb4 5tCb6zkXndrQGn3MIOQvgf8HCPzrs30FF81d7VOewyX9kF0W3PukBHzlgub7zqk0Ly5q C5Rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=Xv8hUgYJ; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hd12-20020a170907968c00b00a4742929650si4633158ejc.333.2024.03.27.08.25.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:25:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=Xv8hUgYJ; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B4CE91F33544 for ; Wed, 27 Mar 2024 15:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F4551465A3; Wed, 27 Mar 2024 15:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="Xv8hUgYJ" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 242EA12F36C for ; Wed, 27 Mar 2024 15:07:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711552041; cv=none; b=KmuHyOrjCqA9Qefegg+W7daAHq7eCXEVVmkltUJ9jUxnaNMdje76hRammSClYejnfYpRGeTObZ9eh4UvbDvEE03knIhBW4zVAXJ/SHBCwlbyVJ4fAcSS2ooqVoEa/a5ZjBTqLQfawOYonRgFioZjQzfN0T2PeA6Lw+Wm2+EPOOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711552041; c=relaxed/simple; bh=mzk+bgPSkQUzL/vnXJBmrg/umyndJWoEggObcfG9yAE=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=KhKwZ8Hs6JHhsHG5DS3tu0o9dEEP2yPC28l3HbrcFxneSPsWk4q4ue6VkgrOAtNjsZaVeKK4wqEPvg7ZdnnkOFjRRJr3KTEZRKVIk77u045gn4DGpj2xBrSY7T2qkT3sk/7Jgky1aYvwtE4K9nCgIGEZT3ucYPsVkYPWDdLJ7io= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=Xv8hUgYJ; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=mzk+bgPSkQUzL/vnXJBmrg/umyndJWoEggObcfG9yAE=; t=1711552039; x=1712761639; b=Xv8hUgYJu6xv70b5vHEiLDkMoUCB0LD8/Y4yIvE0EMo/o0n l//qs2pztVxQ1Z81ZudEgoj/xQBz/jI7ILl+IumIYA1+Rwn0evQDQwGQJS431Q/lGG5CHzNCSn8Op ZxasN0KReqVcTodxpYLLSblp5oyJuAsOq1nob4gs8FLsq3KOp4qfNZ7k8nGfDRUcTYp4PBgXs6cMV V0RuiY5dFfKHFwh5/XPmAemVNfiQugCq9amU3V6o9QC9lSM3UIdwIhKGebCXZmfIDheW5VdHmUQFG pRddKATeMr8HLgmNLIh3WeNcphvzBrLGJ08y0Lyb9FTMyc3XRNXpy9n/l91Od4ew==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rpUru-0000000HAgP-26MD; Wed, 27 Mar 2024 16:07:10 +0100 Message-ID: Subject: Re: [PATCH v2 1/2] wifi: cfg80211/mac80211: Add support to rx retry stats From: Johannes Berg To: Jeff Johnson , Hari Chandrakanthan , ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Date: Wed, 27 Mar 2024 16:07:09 +0100 In-Reply-To: <68c6fcbd-0aaa-43b2-b5e2-08367c11e79d@quicinc.com> References: <20240319134522.4021062-1-quic_haric@quicinc.com> <20240319134522.4021062-2-quic_haric@quicinc.com> <14699537-99b2-e468-6a7b-7b721193400e@quicinc.com> <68c6fcbd-0aaa-43b2-b5e2-08367c11e79d@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Wed, 2024-03-27 at 08:02 -0700, Jeff Johnson wrote: > > I'm also imagining that we change the API from cfg80211 to the drivers > > to get the *link* STA information, and do the summing up and/or "best" > > selection there in cfg80211 itself. However, I am prepared to accept th= e > > possibility that we may do _both_ in the API, if not all drivers can > > even do all of the statistics per link. We should probably still have > > the link STAs in the statistics in nl80211, but then they may not be > > populated? >=20 > First remember that there are a lot of statistics, and each driver is fre= e to > return as many or as few as they support, indicating the ones they are > returning using the "filled" bitmap.=C2=A0 Yes, I'd think we want to use the same data structure for both, though setting something in *both* links and *mld* would (should) be an error. > I would expect MLO-capable drivers to > provide the same information on a per-link basis that they previously pro= vided > on a per-interface basis, but the "filled" bitmap leaves that to the driv= ers. Unless we don't actually ask the drivers at the MLD level if (the station is an MLD). But I suspect we will have to do both, ask for MLD- level stats and link-level stats. > But I think a fundamental question needs to be answered: To what extent d= o we > need to support legacy userspace applications that are not MLO-aware? I have no idea who even uses this and how :-) But I guess things like NetworkManager might, even just to show some signal strength values etc.? > My expectation is that MLO-aware applications only need the per-link > information, and from that they can derive their own "aggregate" of the > per-link information. Agree, though it'll be a long time until all applications are MLO-aware? Unless there aren't many using it, but ... > So to support that we'd need per-link nesting of the > associated attributes. Sure, that's a given. > And if we don't need to support legacy userspace we > could completely remove populating the top-level statistic attributes. No= n-MLO > interfaces would have a single link nest that contains the same informati= on > that is now in the top-level of the NL message. >=20 > But if we need to support legacy userspace then we would indeed need to > continue to populate those top-level attributes with some form of aggrega= te data. I think we probably have to. > And even for the MLO-aware case there is the issue of how do we want to h= andle > the case that links may come and go, and hence aggregate counters would a= ppear > to have huge fluctuations in values when links are added or removed if th= e > aggregate values are only calculated by adding the values from the > currently-attached links. Good point, when they're really removed we'd want to probably keep that value as a bias for the MLD-level stats? johannes