From owner-p4-projects@FreeBSD.ORG Thu Jan 17 09:48:01 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4CFFD16A468; Thu, 17 Jan 2008 09:48:01 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11E1E16A41A for ; Thu, 17 Jan 2008 09:48:01 +0000 (UTC) (envelope-from scottl@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id ED0E713C455 for ; Thu, 17 Jan 2008 09:48:00 +0000 (UTC) (envelope-from scottl@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0H9m04R001846 for ; Thu, 17 Jan 2008 09:48:00 GMT (envelope-from scottl@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0H9m0f4001843 for perforce@freebsd.org; Thu, 17 Jan 2008 09:48:00 GMT (envelope-from scottl@freebsd.org) Date: Thu, 17 Jan 2008 09:48:00 GMT Message-Id: <200801170948.m0H9m0f4001843@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to scottl@freebsd.org using -f From: Scott Long To: Perforce Change Reviews Cc: Subject: PERFORCE change 133465 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 09:48:01 -0000 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; }