freebsd-dev/sys/dev/dc
Pyun YongHyeon 848a02fc41 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
2011-03-16 17:09:51 +00:00
..
dcphy.c - Even after masking the media with IFM_GMASK the result may have bits 2011-01-14 20:26:59 +00:00
if_dc.c Remove too expensive bus_dmamap_sync(9) call in dc_rx_resync(). 2011-03-16 17:09:51 +00:00
if_dcreg.h s/u_intXX_t/uintXX_t/g 2011-02-19 03:32:10 +00:00
pnphy.c - Even after masking the media with IFM_GMASK the result may have bits 2011-01-14 20:26:59 +00:00