Date: Mon, 28 Mar 2011 00:13:41 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/dc if_dc.c Message-ID: <201103280013.p2S0DuLg014961@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yongari 2011-03-28 00:13:41 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/dev/dc if_dc.c
Log:
SVN rev 220083 on 2011-03-28 00:13:41Z by yongari
MFC r219701:
Remove too expensive bus_dmamap_sync(9) call in dc_rx_resync().
With this change, driver may not notice updated descriptor status
change when bounce buffers are active. However, rxeof() in next run
will handle the synchronization.
Change dc_rxeof() a bit to return the number of processed frames in
RX descriptor ring. Previously it returned the number of frames
that were successfully passed to upper stack which in turn means it
ignored frames that were discarded due to errors. The number of
processed frames in RX descriptor ring is used to detect whether
driver is out of sync with controller's current descriptor pointer.
Returning number of processed frames reduces unnecessary (probably
wrong) re-synchronization.
Reviewed by: marius
Revision Changes Path
1.201.2.12 +4 -10 src/sys/dev/dc/if_dc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103280013.p2S0DuLg014961>
