summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath_tx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c
index 274fa2b..44a496e 100644
--- a/sys/dev/ath/if_ath_tx.c
+++ b/sys/dev/ath/if_ath_tx.c
@@ -5449,8 +5449,12 @@ ath_txq_sched(struct ath_softc *sc, struct ath_txq *txq)
if (tid->axq_depth != 0)
ath_tx_tid_sched(sc, tid);
- /* Give the software queue time to aggregate more packets */
- if (txq->axq_aggr_depth >= sc->sc_hwq_limit) {
+ /*
+ * Give the software queue time to aggregate more
+ * packets. If we aren't running aggregation then
+ * we should still limit the hardware queue depth.
+ */
+ if (txq->axq_depth >= sc->sc_hwq_limit) {
break;
}
OpenPOWER on IntegriCloud