Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2011 04:26:40 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r225603 - user/adrian/if_ath_tx/sys/dev/ath
Message-ID:  <201109160426.p8G4QeaO003853@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Fri Sep 16 04:26:40 2011
New Revision: 225603
URL: http://svn.freebsd.org/changeset/base/225603

Log:
  No need to gate the CABQ if the queue is empty.
  
  Obtained from:	Atheros

Modified:
  user/adrian/if_ath_tx/sys/dev/ath/if_ath.c

Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c	Fri Sep 16 04:09:53 2011	(r225602)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c	Fri Sep 16 04:26:40 2011	(r225603)
@@ -2764,7 +2764,8 @@ ath_beacon_generate(struct ath_softc *sc
 			sc->sc_stats.ast_cabq_xmit += nmcastq;
 		}
 		/* NB: gated by beacon so safe to start here */
-		ath_hal_txstart(ah, cabq->axq_qnum);
+		if (! TAILQ_EMPTY(&(cabq->axq_q)))
+			ath_hal_txstart(ah, cabq->axq_qnum);
 		ATH_TXQ_UNLOCK(&avp->av_mcastq);
 		ATH_TXQ_UNLOCK(cabq);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109160426.p8G4QeaO003853>