Date: Wed, 16 Mar 2011 17:09:51 +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: <201103161710.p2GHAAWu010895@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yongari 2011-03-16 17:09:51 UTC FreeBSD src repository Modified files: sys/dev/dc if_dc.c Log: SVN rev 219701 on 2011-03-16 17:09:51Z by yongari 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.222 +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?201103161710.p2GHAAWu010895>