Date: Thu, 17 Jan 2008 09:48:00 GMT From: Scott Long <scottl@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133465 for review Message-ID: <200801170948.m0H9m0f4001843@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133465 Change 133465 by scottl@scottl-ix on 2008/01/17 09:47:34 Fix a few more whitespace issues Affected files ... .. //depot/projects/xen31/sys/dev/xen/netfront/netfront.c#8 edit Differences ... ==== //depot/projects/xen31/sys/dev/xen/netfront/netfront.c#8 (text+ko) ==== @@ -947,7 +947,7 @@ } np->rx.rsp_cons = i; - + /* 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) > @@ -1039,7 +1039,6 @@ struct netfront_info *np = xsc; struct ifnet *ifp = np->xn_ifp; - if (!(np->rx.rsp_cons != np->rx.sring->rsp_prod && likely(netfront_carrier_ok(np)) && ifp->if_drv_flags & IFF_DRV_RUNNING)) @@ -1049,7 +1048,7 @@ xn_txeof(np); XN_TX_UNLOCK(np); } - + XN_RX_LOCK(np); xn_rxeof(np); XN_RX_UNLOCK(np); @@ -1281,13 +1280,11 @@ sc = ifp->if_softc; tx_bytes = 0; - if (!netfront_carrier_ok(sc)) return; for (i = sc->tx.req_prod_pvt; TRUE; i++) { - IF_DEQUEUE(&ifp->if_snd, m_head); if (m_head == NULL) break; @@ -1299,7 +1296,7 @@ } id = get_id_from_freelist(sc->xn_cdata.xn_tx_chain); - + /* * Start packing the mbufs in this chain into * the fragment pointers. Stop when we run out @@ -1330,7 +1327,7 @@ sc->stats.tx_bytes += new_m->m_pkthdr.len; sc->stats.tx_packets++; } - + sc->tx.req_prod_pvt = i; RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&sc->tx, notify); if (notify) @@ -1345,8 +1342,6 @@ #endif } - - return; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801170948.m0H9m0f4001843>