Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2008 10:07:21 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 133467 for review
Message-ID:  <200801171007.m0HA7LE7008871@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133467

Change 133467 by scottl@scottl-ix on 2008/01/17 10:07:19

	Disable a couple of optimizations that result in traffic stopping on
	the interface.  The netfront/xn driver now seems to work reliably.

Affected files ...

.. //depot/projects/xen31/sys/dev/xen/netfront/netfront.c#9 edit

Differences ...

==== //depot/projects/xen31/sys/dev/xen/netfront/netfront.c#9 (text+ko) ====

@@ -948,11 +948,13 @@
 	
 	np->rx.rsp_cons = i;
 
+#if 0
 	/* If we get a callback with very few responses, reduce fill target. */
 	/* NB. Note exponential increase, linear decrease. */
 	if (((np->rx.req_prod_pvt - np->rx.sring->rsp_prod) > 
 	    ((3*np->rx_target) / 4)) && (--np->rx_target < np->rx_min_target))
 		np->rx_target = np->rx_min_target;
+#endif
 	
 	network_alloc_rx_buffers(np);
 
@@ -1039,10 +1041,12 @@
 	struct netfront_info *np = xsc;
 	struct ifnet *ifp = np->xn_ifp;
 
+#if 0
 	if (!(np->rx.rsp_cons != np->rx.sring->rsp_prod &&
 	    likely(netfront_carrier_ok(np)) &&
 	    ifp->if_drv_flags & IFF_DRV_RUNNING))
 		return;
+#endif
 	if (np->tx.rsp_cons != np->tx.sring->rsp_prod) {
 		XN_TX_LOCK(np);
 		xn_txeof(np);



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