Date: Wed, 29 Jun 2011 02:15:20 GMT From: Jakub Wojciech Klama <jceel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 195492 for review Message-ID: <201106290215.p5T2FKra000437@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@195492?ac=10 Change 195492 by jceel@jceel_cyclone on 2011/06/29 02:14:41 Fixes in ethernet driver. Affected files ... .. //depot/projects/soc2011/jceel_lpc/sys/arm/lpc/if_lpe.c#3 edit .. //depot/projects/soc2011/jceel_lpc/sys/arm/lpc/if_lpereg.h#3 edit Differences ... ==== //depot/projects/soc2011/jceel_lpc/sys/arm/lpc/if_lpe.c#3 (text+ko) ==== @@ -479,6 +479,10 @@ // device_printf(sc->lpe_dev, "lpe_start_locked()\n"); while (!IFQ_DRV_IS_EMPTY(&ifp->if_snd)) { + if (lpe_read_4(sc, LPE_TXDESC_PROD) == + lpe_read_4(sc, LPE_TXDESC_CONS) - 5) + break; + /* Dequeue first packet */ IFQ_DRV_DEQUEUE(&ifp->if_snd, m_head); if (!m_head) @@ -541,7 +545,7 @@ if (i == nsegs - 1) { hwd->lhr_control |= LPE_HWDESC_LASTFLAG; hwd->lhr_control |= LPE_HWDESC_INTERRUPT; - hwd->lhr_control |= (1 << 28) | (1 << 29); + hwd->lhr_control |= (1 << 28) | (1 << 29); // XXX } LPE_INC(prod, LPE_TXDESC_NUM); ==== //depot/projects/soc2011/jceel_lpc/sys/arm/lpc/if_lpereg.h#3 (text+ko) ====
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106290215.p5T2FKra000437>