svn commit: r218828 - head/sys/dev/dc

Pyun YongHyeon yongari at FreeBSD.org
Fri Feb 18 23:18:08 UTC 2011


Author: yongari
Date: Fri Feb 18 23:18:08 2011
New Revision: 218828
URL: http://svn.freebsd.org/changeset/base/218828

Log:
  Fix a long standing bug where driver handed over RX descriptor
  ownership to controller before completion of access to the
  descriptor. Driver is faking up status word so it should not give
  ownership to controller until it completes RX processing.

Modified:
  head/sys/dev/dc/if_dc.c

Modified: head/sys/dev/dc/if_dc.c
==============================================================================
--- head/sys/dev/dc/if_dc.c	Fri Feb 18 23:08:05 2011	(r218827)
+++ head/sys/dev/dc/if_dc.c	Fri Feb 18 23:18:08 2011	(r218828)
@@ -2671,7 +2671,6 @@ dc_pnic_rx_bug_war(struct dc_softc *sc, 
 	 * the status word to make it look like a successful
 	 * frame reception.
 	 */
-	dc_newbuf(sc, i, 0);
 	bcopy(ptr, mtod(m, char *), total_len);
 	cur_rx->dc_status = htole32(rxstat | DC_RXSTAT_FIRSTFRAG);
 }


More information about the svn-src-all mailing list