From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>,
Steve deRosier <derosier@gmail.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: Where to report mpdus tx vs failed?
Date: Mon, 22 Oct 2018 10:16:28 -0700 [thread overview]
Message-ID: <ae110050-1eec-25c4-57ba-86b42aae2930@candelatech.com> (raw)
In-Reply-To: <512247ba69be323b6cef3b17ccd6957343acebd1.camel@sipsolutions.net>
On 10/22/2018 05:07 AM, Johannes Berg wrote:
> On Mon, 2018-10-22 at 14:06 +0200, Johannes Berg wrote:
>> On Fri, 2018-10-19 at 11:32 -0700, Ben Greear wrote:
>>>
>>> I was hoping I could fit it into some existing stat. It is sort of like
>>> retries, so that will be my first attempt.
>>>
>>> By investigating an RF sniff, I notice the 9880 ath10k (with my fw
>>> and driver, at least), will retransmit about 30% of the frames when running
>>> at least one of my test cases (small udp frame transmit to AP that can only do about mcs5 or mcs7
>>> reliably at 3x3 nss).
>>>
>>> I'd like to report this stat in my wifi test tool if nothing else, but
>>> likely other people would make use of it as well.
>>
>>
>> We have NL80211_STA_INFO_TX_RETRIES, shouldn't you be able to capture it
>> there?
>
> Or, per TID, NL80211_TID_STATS_TX_MSDU_RETRIES
I added this code (rate is struct ieee80211_tx_rate)
if (tx_done->mpdus_failed) {
/* Maybe there is a better way to report this tried vs failed stat up the stack? */
rate->count = tx_done->mpdus_failed + 1;
}
else {
rate->count = 1;
}
I think this is mostly providing useful info up the stack and we are trying to verify
the counts against a packet sniff today. The driver is only reporting
this number for the first packet in the ampdu chain, so all retries are counted against the
first frame (the rest will have mpdus_failed == 0 regardless of how many retries they have).
And, on total retry failure, packets should be reported up the stack as tx-no-ack, so I think
that is working OK too.
I guess mac80211 could use this tx-status to report per-tid if it cared to. I don't see any
other way to pass such tx failure details up the stack to mac80211.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2018-10-22 17:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-19 17:34 Where to report mpdus tx vs failed? Ben Greear
2018-10-19 18:25 ` Steve deRosier
2018-10-19 18:32 ` Ben Greear
2018-10-22 12:06 ` Johannes Berg
2018-10-22 12:07 ` Johannes Berg
2018-10-22 17:16 ` Ben Greear [this message]
2018-10-23 9:36 ` Johannes Berg
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=ae110050-1eec-25c4-57ba-86b42aae2930@candelatech.com \
--to=greearb@candelatech.com \
--cc=derosier@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox