svn commit: r301994 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Fri Jun 17 17:01:34 UTC 2016


Author: adrian
Date: Fri Jun 17 17:01:32 2016
New Revision: 301994
URL: https://svnweb.freebsd.org/changeset/base/301994

Log:
  [ath] don't debug RX EDMA descriptors that are not yet complete.
  
  Approved by:	re@ (gjb)

Modified:
  head/sys/dev/ath/if_ath_rx_edma.c

Modified: head/sys/dev/ath/if_ath_rx_edma.c
==============================================================================
--- head/sys/dev/ath/if_ath_rx_edma.c	Fri Jun 17 16:46:58 2016	(r301993)
+++ head/sys/dev/ath/if_ath_rx_edma.c	Fri Jun 17 17:01:32 2016	(r301994)
@@ -427,6 +427,8 @@ ath_edma_recv_proc_queue(struct ath_soft
 		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_soft
 			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.


More information about the svn-src-head mailing list