PERFORCE change 133467 for review
Scott Long
scottl at FreeBSD.org
Thu Jan 17 02:07:21 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133467
Change 133467 by scottl at 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);
More information about the p4-projects
mailing list