From 6e53147404a7f4fb4173694bc812d9d23efd9fef Mon Sep 17 00:00:00 2001 From: adrian Date: Wed, 27 May 2009 13:59:17 +0000 Subject: Clear IFF_DRV_OACTIVE if at least one TX xen/mbuf ring slot has been freed. --- sys/dev/xen/netfront/netfront.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/xen/netfront/netfront.c') diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index 3498e5d..046cd65 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -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: -- cgit v1.1