Skip to content

Commit 25b0ba7

Browse files
greearbjmberg-intel
authored andcommitted
mac80211: Add txq flags to debugfs
Might help one figure out why aqm drivers may fail to transmit frames sometimes. Signed-off-by: Ben Greear <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent 10773a7 commit 25b0ba7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

net/mac80211/debugfs_sta.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ static ssize_t sta_aqm_read(struct file *file, char __user *userbuf,
160160
sta->cparams.ecn ? "yes" : "no");
161161
p += scnprintf(p,
162162
bufsz+buf-p,
163-
"tid ac backlog-bytes backlog-packets new-flows drops marks overlimit collisions tx-bytes tx-packets\n");
163+
"tid ac backlog-bytes backlog-packets new-flows drops marks overlimit collisions tx-bytes tx-packets flags\n");
164164

165165
for (i = 0; i < IEEE80211_NUM_TIDS; i++) {
166166
txqi = to_txq_info(sta->sta.txq[i]);
167167
p += scnprintf(p, bufsz+buf-p,
168-
"%d %d %u %u %u %u %u %u %u %u %u\n",
168+
"%d %d %u %u %u %u %u %u %u %u %u 0x%lx(%s%s%s)\n",
169169
txqi->txq.tid,
170170
txqi->txq.ac,
171171
txqi->tin.backlog_bytes,
@@ -176,7 +176,11 @@ static ssize_t sta_aqm_read(struct file *file, char __user *userbuf,
176176
txqi->tin.overlimit,
177177
txqi->tin.collisions,
178178
txqi->tin.tx_bytes,
179-
txqi->tin.tx_packets);
179+
txqi->tin.tx_packets,
180+
txqi->flags,
181+
txqi->flags & (1<<IEEE80211_TXQ_STOP) ? "STOP" : "RUN",
182+
txqi->flags & (1<<IEEE80211_TXQ_AMPDU) ? " AMPDU" : "",
183+
txqi->flags & (1<<IEEE80211_TXQ_NO_AMSDU) ? " NO-AMSDU" : "");
180184
}
181185

182186
rcu_read_unlock();

0 commit comments

Comments
 (0)