From owner-svn-src-head@FreeBSD.ORG Wed May 27 13:59:18 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31DFE1065670; Wed, 27 May 2009 13:59:18 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 203BF8FC19; Wed, 27 May 2009 13:59:18 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4RDxI7v098924; Wed, 27 May 2009 13:59:18 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4RDxIkW098923; Wed, 27 May 2009 13:59:18 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <200905271359.n4RDxIkW098923@svn.freebsd.org> From: Adrian Chadd Date: Wed, 27 May 2009 13:59:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192894 - head/sys/dev/xen/netfront X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 27 May 2009 13:59:18 -0000 Author: adrian Date: Wed May 27 13:59:17 2009 New Revision: 192894 URL: http://svn.freebsd.org/changeset/base/192894 Log: Clear IFF_DRV_OACTIVE if at least one TX xen/mbuf ring slot has been freed. Modified: head/sys/dev/xen/netfront/netfront.c Modified: head/sys/dev/xen/netfront/netfront.c ============================================================================== --- head/sys/dev/xen/netfront/netfront.c Wed May 27 12:44:36 2009 (r192893) +++ head/sys/dev/xen/netfront/netfront.c Wed May 27 13:59:17 2009 (r192894) @@ -1099,6 +1099,8 @@ xn_txeof(struct netfront_info *np) panic("netif_release_tx_bufs: tx_chain_cnt must be >= 0"); } m_free(m); + /* Only mark the queue active if we've freed up at least one slot to try */ + ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; } np->tx.rsp_cons = prod; @@ -1115,7 +1117,6 @@ xn_txeof(struct netfront_info *np) prod + ((np->tx.sring->req_prod - prod) >> 1) + 1; mb(); - } while (prod != np->tx.sring->rsp_prod); out: