From owner-svn-src-head@FreeBSD.ORG Mon Nov 5 09:27:47 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87E04294; Mon, 5 Nov 2012 09:27:47 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 6EB338FC1A; Mon, 5 Nov 2012 09:27:47 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qA59Rl93069518; Mon, 5 Nov 2012 09:27:47 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qA59RlSO069516; Mon, 5 Nov 2012 09:27:47 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201211050927.qA59RlSO069516@svn.freebsd.org> From: Adrian Chadd Date: Mon, 5 Nov 2012 09:27:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242604 - head/sys/dev/ath X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2012 09:27:47 -0000 Author: adrian Date: Mon Nov 5 09:27:47 2012 New Revision: 242604 URL: http://svnweb.freebsd.org/changeset/base/242604 Log: Clear IFF_DRV_OACTIVE if any slots were completed. This unblocks TX EDMA under high load. Modified: head/sys/dev/ath/if_ath_tx_edma.c Modified: head/sys/dev/ath/if_ath_tx_edma.c ============================================================================== --- head/sys/dev/ath/if_ath_tx_edma.c Mon Nov 5 09:26:27 2012 (r242603) +++ head/sys/dev/ath/if_ath_tx_edma.c Mon Nov 5 09:27:47 2012 (r242604) @@ -602,6 +602,12 @@ ath_edma_tx_proc(void *arg, int npending sc->sc_wd_timer = 0; + if (idx > 0) { + IF_LOCK(&sc->sc_ifp->if_snd); + sc->sc_ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; + IF_UNLOCK(&sc->sc_ifp->if_snd); + } + /* Kick software scheduler */ /* * XXX It's inefficient to do this if the FIFO queue is full,