From: "Toke Høiland-Jørgensen" <toke@toke.dk>
To: greearb@candelatech.com, linux-wireless@vger.kernel.org
Cc: Ben Greear <greearb@candelatech.com>
Subject: Re: [PATCH] ath9k: Print has_queued in debugfs.
Date: Sat, 27 Jan 2018 14:29:49 +0100 [thread overview]
Message-ID: <874ln7v38y.fsf@toke.dk> (raw)
In-Reply-To: <1517015397-30957-1-git-send-email-greearb@candelatech.com>
greearb@candelatech.com writes:
> From: Ben Greear <greearb@candelatech.com>
>
> The PAUSED field was never printed per tid. Replace that
> with has_queued, which might help someone track down strange
> bugs related to aqm.
>
> And, make tx-queue debug info show peer BSSID as well as vdev
> MAC to aid debugging with multiple stations connected to the
> same peer.
>
> Signed-off-by: Ben Greear <greearb@candelatech.com>
> ---
> drivers/net/wireless/ath/ath9k/debug_sta.c | 10 ++++++----
> drivers/net/wireless/ath/ath9k/xmit.c | 5 +++--
> 2 files changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/debug_sta.c b/drivers/net/wireless/ath/ath9k/debug_sta.c
> index efc692e..a45f1f5 100644
> --- a/drivers/net/wireless/ath/ath9k/debug_sta.c
> +++ b/drivers/net/wireless/ath/ath9k/debug_sta.c
> @@ -48,9 +48,10 @@ static ssize_t read_file_node_aggr(struct file *file, char __user *user_buf,
> an->mpdudensity);
>
> len += scnprintf(buf + len, size - len,
> - "\n%3s%11s%10s%10s%10s%10s%9s%6s%8s\n",
> + "\n%3s%11s%10s%10s%10s%10s%9s%6s%9s\n",
> "TID", "SEQ_START", "SEQ_NEXT", "BAW_SIZE",
> - "BAW_HEAD", "BAW_TAIL", "BAR_IDX", "SCHED", "PAUSED");
> + "BAW_HEAD", "BAW_TAIL", "BAR_IDX", "SCHED",
> + "HAS-QUED");
>
> for (tidno = 0; tidno < IEEE80211_NUM_TIDS; tidno++) {
> tid = ath_node_to_tid(an, tidno);
> @@ -58,7 +59,7 @@ static ssize_t read_file_node_aggr(struct file *file, char __user *user_buf,
> ath_txq_lock(sc, txq);
> if (tid->active) {
> len += scnprintf(buf + len, size - len,
> - "%3d%11d%10d%10d%10d%10d%9d%6d\n",
> + "%3d%11d%10d%10d%10d%10d%9d%6d%9d\n",
> tid->tidno,
> tid->seq_start,
> tid->seq_next,
> @@ -66,7 +67,8 @@ static ssize_t read_file_node_aggr(struct file *file, char __user *user_buf,
> tid->baw_head,
> tid->baw_tail,
> tid->bar_index,
> - !list_empty(&tid->list));
> + !list_empty(&tid->list),
> + tid->has_queued);
Would it perhaps be useful to print the length of tid->retry_q instead
of / in addition to has_queued? Planning to get rid of the has_queued
variable entirely...
-Toke
next prev parent reply other threads:[~2018-01-27 13:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-27 1:09 [PATCH] ath9k: Print has_queued in debugfs greearb
2018-01-27 13:29 ` Toke Høiland-Jørgensen [this message]
2018-01-27 16:24 ` Ben Greear
2018-01-27 16:29 ` Toke Høiland-Jørgensen
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=874ln7v38y.fsf@toke.dk \
--to=toke@toke.dk \
--cc=greearb@candelatech.com \
--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;
as well as URLs for NNTP newsgroup(s).