summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-04-11 22:02:35 +0000
committeradrian <adrian@FreeBSD.org>2013-04-11 22:02:35 +0000
commit2de9f3a45533170ce9fb1c8445a924e507f33676 (patch)
tree729b6e7af28ed96b08a9964b3de27967083f3242
parent8cfaf1f711865c11b6ec56c8c1255f9bad4840ef (diff)
downloadFreeBSD-src-2de9f3a45533170ce9fb1c8445a924e507f33676.zip
FreeBSD-src-2de9f3a45533170ce9fb1c8445a924e507f33676.tar.gz
Always enable TXOK interrupts when setting up TX queues for EDMA NICs.
-rw-r--r--sys/dev/ath/if_ath.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index d05275f..c0d002d 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -3468,7 +3468,13 @@ ath_txq_setup(struct ath_softc *sc, int qtype, int subtype)
* up in which case the top half of the kernel may backup
* due to a lack of tx descriptors.
*/
- qi.tqi_qflags = HAL_TXQ_TXEOLINT_ENABLE | HAL_TXQ_TXDESCINT_ENABLE;
+ if (sc->sc_isedma)
+ qi.tqi_qflags = HAL_TXQ_TXEOLINT_ENABLE |
+ HAL_TXQ_TXOKINT_ENABLE;
+ else
+ qi.tqi_qflags = HAL_TXQ_TXEOLINT_ENABLE |
+ HAL_TXQ_TXDESCINT_ENABLE;
+
qnum = ath_hal_setuptxqueue(ah, qtype, &qi);
if (qnum == -1) {
/*
OpenPOWER on IntegriCloud