Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Ben Greear and committed by
Johannes Berg
25b0ba7e 10773a7c

+7 -3
+7 -3
net/mac80211/debugfs_sta.c
··· 160 160 sta->cparams.ecn ? "yes" : "no"); 161 161 p += scnprintf(p, 162 162 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"); 164 164 165 165 for (i = 0; i < IEEE80211_NUM_TIDS; i++) { 166 166 txqi = to_txq_info(sta->sta.txq[i]); 167 167 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", 169 169 txqi->txq.tid, 170 170 txqi->txq.ac, 171 171 txqi->tin.backlog_bytes, ··· 176 176 txqi->tin.overlimit, 177 177 txqi->tin.collisions, 178 178 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" : ""); 180 184 } 181 185 182 186 rcu_read_unlock();