diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-07-20 16:37:50 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-07-20 16:37:50 +0000 |
commit | a0129dfd8e0d3de96155a40767f9853079957a6b (patch) | |
tree | c16a596355cedebf2d7262015c6ccdcba970257c /package/kernel/mac80211/patches/563-ath9k_queue_cabq_debug.patch | |
parent | 85e585ddcef9bccc717e500e0f7672675ef7269a (diff) | |
download | mtk-20170518-a0129dfd8e0d3de96155a40767f9853079957a6b.zip mtk-20170518-a0129dfd8e0d3de96155a40767f9853079957a6b.tar.gz mtk-20170518-a0129dfd8e0d3de96155a40767f9853079957a6b.tar.bz2 |
ath9k: add initial tx queueing rework patches
This forces all packets (even for un-aggregated traffic) through
software queues to improve fairness and stability
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37483
Diffstat (limited to 'package/kernel/mac80211/patches/563-ath9k_queue_cabq_debug.patch')
-rw-r--r-- | package/kernel/mac80211/patches/563-ath9k_queue_cabq_debug.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/563-ath9k_queue_cabq_debug.patch b/package/kernel/mac80211/patches/563-ath9k_queue_cabq_debug.patch new file mode 100644 index 0000000..22cba43 --- /dev/null +++ b/package/kernel/mac80211/patches/563-ath9k_queue_cabq_debug.patch @@ -0,0 +1,61 @@ +--- a/drivers/net/wireless/ath/ath9k/debug.c ++++ b/drivers/net/wireless/ath/ath9k/debug.c +@@ -607,6 +607,28 @@ static ssize_t read_file_xmit(struct fil + return retval; + } + ++static ssize_t print_queue(struct ath_softc *sc, struct ath_txq *txq, ++ char *buf, ssize_t size) ++{ ++ ssize_t len = 0; ++ ++ ath_txq_lock(sc, txq); ++ ++ len += snprintf(buf + len, size - len, "%s: %d ", ++ "qnum", txq->axq_qnum); ++ len += snprintf(buf + len, size - len, "%s: %2d ", ++ "qdepth", txq->axq_depth); ++ len += snprintf(buf + len, size - len, "%s: %2d ", ++ "ampdu-depth", txq->axq_ampdu_depth); ++ len += snprintf(buf + len, size - len, "%s: %3d ", ++ "pending", txq->pending_frames); ++ len += snprintf(buf + len, size - len, "%s: %d\n", ++ "stopped", txq->stopped); ++ ++ ath_txq_unlock(sc, txq); ++ return len; ++} ++ + static ssize_t read_file_queues(struct file *file, char __user *user_buf, + size_t count, loff_t *ppos) + { +@@ -624,24 +646,13 @@ static ssize_t read_file_queues(struct f + + for (i = 0; i < IEEE80211_NUM_ACS; i++) { + txq = sc->tx.txq_map[i]; +- len += snprintf(buf + len, size - len, "(%s): ", qname[i]); +- +- ath_txq_lock(sc, txq); +- +- len += snprintf(buf + len, size - len, "%s: %d ", +- "qnum", txq->axq_qnum); +- len += snprintf(buf + len, size - len, "%s: %2d ", +- "qdepth", txq->axq_depth); +- len += snprintf(buf + len, size - len, "%s: %2d ", +- "ampdu-depth", txq->axq_ampdu_depth); +- len += snprintf(buf + len, size - len, "%s: %3d ", +- "pending", txq->pending_frames); +- len += snprintf(buf + len, size - len, "%s: %d\n", +- "stopped", txq->stopped); +- +- ath_txq_unlock(sc, txq); ++ len += snprintf(buf + len, size - len, "(%s): ", qname[i]); ++ len += print_queue(sc, txq, buf + len, size - len); + } + ++ len += snprintf(buf + len, size - len, "(CAB): "); ++ len += print_queue(sc, sc->beacon.cabq, buf + len, size - len); ++ + if (len > size) + len = size; + |