summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-06-17 17:01:32 +0000
committeradrian <adrian@FreeBSD.org>2016-06-17 17:01:32 +0000
commited196aecde5979b90ef9a1abe8623031820325ab (patch)
treee3c62d5ac26daf8c07e1853f10d5faa4380d9816
parent813cf55c141b65d2ceaf067dcaad577863d0c7bb (diff)
downloadFreeBSD-src-ed196aecde5979b90ef9a1abe8623031820325ab.zip
FreeBSD-src-ed196aecde5979b90ef9a1abe8623031820325ab.tar.gz
[ath] don't debug RX EDMA descriptors that are not yet complete.
Approved by: re@ (gjb)
-rw-r--r--sys/dev/ath/if_ath_rx_edma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath_rx_edma.c b/sys/dev/ath/if_ath_rx_edma.c
index 13e141c..578e1cf 100644
--- a/sys/dev/ath/if_ath_rx_edma.c
+++ b/sys/dev/ath/if_ath_rx_edma.c
@@ -427,6 +427,8 @@ ath_edma_recv_proc_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype,
rs = &bf->bf_status.ds_rxstat;
bf->bf_rxstatus = ath_hal_rxprocdesc(ah, ds, bf->bf_daddr,
NULL, rs);
+ if (bf->bf_rxstatus == HAL_EINPROGRESS)
+ break;
#ifdef ATH_DEBUG
if (sc->sc_debug & ATH_DEBUG_RECV_DESC)
ath_printrxbuf(sc, bf, 0, bf->bf_rxstatus == HAL_OK);
@@ -436,8 +438,6 @@ ath_edma_recv_proc_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype,
if_ath_alq_post(&sc->sc_alq, ATH_ALQ_EDMA_RXSTATUS,
sc->sc_rx_statuslen, (char *) ds);
#endif /* ATH_DEBUG */
- if (bf->bf_rxstatus == HAL_EINPROGRESS)
- break;
/*
* Completed descriptor.
OpenPOWER on IntegriCloud