From: Ben Greear <greearb@candelatech.com>
To: Sarika Sharma <quic_sarishar@quicinc.com>, johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH RFC 0/7] wifi: cfg80211/mac80211: add support to handle per link statistics of multi-link station
Date: Fri, 10 Jan 2025 08:53:55 -0800 [thread overview]
Message-ID: <38a7b894-9528-123a-28b8-fd9613fe4a13@candelatech.com> (raw)
In-Reply-To: <20250110042449.1158789-1-quic_sarishar@quicinc.com>
On 1/9/25 20:24, Sarika Sharma wrote:
> Current implementation of NL80211_CMD_GET_STATION does not work
> for multi-link operation(MLO) since in case of MLO only deflink
> (or one of the links) is considered and not all links.
>
> Hence, add the link_sinfo structure to provide infrastructure
> for link-level station statistics for multi-link operation(MLO).
>
> Additionally, accumulated stats for MLO are included in a concise
> manner to provide a comprehensive overview of the ML stations.
>
> NOTE:
> 1. Current code changes are done to get an early feedback on design.
> 2. Once RFC patches are approved will add the required driver changes.
> 3. Ath12k changes are included in this series for reference to other
> driver changes.
> Alternate approach:
> - Keep sinfo structure as it is and use this for non-ML or
> accumulated statistics for ML station.
> - Add link sinfo for links with only certain link specific statistics.
> - Keep mac_op_sta_statistics at MLD level and let driver fill the
> MLO and link level data, if driver not filling let mac80211 fill
> the data.
> - Corresponding changes done to embed statistics into the NL message
> based on the sinfo/link_sinfo.
My suggestions for general approach to this:
1) current sinfo stats should report totals for all links,
but it should not sum them up at query time because links come
and go. So driver/firmware/mac80211 or whatever is keeping count
of the stats needs to count the total tx/rx/ packets/bytes/whatever
as it happens.
2) Per-link stats can be over duration of the link object.
3) For sinfo logic that currently reports tx/rx mcs rate and such that cannot
be summed, use 'best' link's for those values. Effectively, this probably means highest
frequency is 'best' link.
4) Add per-link stats data that looks very much like 'sinfo' data struct and user-space
that can support that could then get detailed per-link stats at same time it is getting
per netdev 'sinfo' stats.
5) Assuming there will never be more than 3 links for any radios supported by Linux in the near future,
embed the 3 link's 'sinfo-like' stats data structure in the per-netdev sinfo stats struct
so that we can get all 3 link's data at same time that we are getting the other stats.
That should save calls into the driver and ensure that per-links stats can be gathered
at exactly the same time.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2025-01-10 17:09 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 4:24 [PATCH RFC 0/7] wifi: cfg80211/mac80211: add support to handle per link statistics of multi-link station Sarika Sharma
2025-01-10 4:24 ` [PATCH RFC 1/7] wifi: cfg80211: reorg sinfo structure elements for mesh Sarika Sharma
2025-01-10 9:15 ` Johannes Berg
2025-01-12 8:08 ` Sarika Sharma
2025-01-10 4:24 ` [PATCH RFC 2/7] wifi: cfg80211: reorg sinfo structure elements for MLO Sarika Sharma
2025-01-10 9:19 ` Johannes Berg
2025-01-12 8:10 ` Sarika Sharma
2025-01-14 11:19 ` Johannes Berg
2025-01-15 6:40 ` Sarika Sharma
2025-01-11 6:51 ` kernel test robot
2025-01-11 7:25 ` kernel test robot
2025-01-10 4:24 ` [PATCH RFC 3/7] wifi: cfg80211: extend statistics for link level in sinfo Sarika Sharma
2025-01-10 9:20 ` Johannes Berg
2025-01-12 8:10 ` Sarika Sharma
2025-01-10 9:21 ` Johannes Berg
2025-01-12 8:14 ` Sarika Sharma
2025-01-11 9:49 ` kernel test robot
2025-01-10 4:24 ` [PATCH RFC 4/7] wifi: cfg80211: add accumulated statistics for MLO links Sarika Sharma
2025-01-10 4:24 ` [PATCH RFC 5/7] wifi: mac80211: add support to accumulate removed link statistics Sarika Sharma
2025-01-10 9:22 ` Johannes Berg
2025-01-12 8:15 ` Sarika Sharma
2025-01-10 4:24 ` [PATCH RFC 6/7] wifi: cfg80211: add additional MLO statistics Sarika Sharma
2025-01-10 4:24 ` [PATCH RFC 7/7] wifi: ath12k: correctly fetch arsta for MLO Sarika Sharma
2025-01-10 9:45 ` [PATCH RFC 0/7] wifi: cfg80211/mac80211: add support to handle per link statistics of multi-link station Johannes Berg
2025-01-12 8:17 ` Sarika Sharma
2025-01-10 16:53 ` Ben Greear [this message]
2025-01-15 5:11 ` Sarika Sharma
2025-01-15 17:02 ` Ben Greear
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38a7b894-9528-123a-28b8-fd9613fe4a13@candelatech.com \
--to=greearb@candelatech.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_sarishar@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.