Date: Fri, 17 Jun 2016 17:01:33 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301994 - head/sys/dev/ath Message-ID: <201606171701.u5HH1XCY091612@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606171701.u5HH1XCY091612>