[Zrouter-src-freebsd] ZRouter.org: push to FreeBSD HEAD tree

zrouter-src-freebsd at zrouter.org zrouter-src-freebsd at zrouter.org
Tue Mar 20 10:05:29 UTC 2012


details:   http://zrouter.org/hg/FreeBSD/head//rev/fe1aa2b56874
changeset: 433:fe1aa2b56874
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Tue Mar 20 00:40:54 2012 +0200
description:
Fix DMA mistake.

diffstat:

 head/sys/mips/atheros/if_arge.c |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 98a2b67999c5 -r fe1aa2b56874 head/sys/mips/atheros/if_arge.c
--- a/head/sys/mips/atheros/if_arge.c	Tue Mar 13 14:26:03 2012 +0200
+++ b/head/sys/mips/atheros/if_arge.c	Tue Mar 20 00:40:54 2012 +0200
@@ -805,6 +805,15 @@
 	ARGE_LOCK_ASSERT(sc);
 
 	arge_stop(sc);
+	/*
+	 * Reset ring consumer and producer values, etc.
+	 */
+	sc->arge_cdata.arge_rx_cons = 0;
+
+	sc->arge_cdata.arge_tx_prod = 0;
+	sc->arge_cdata.arge_tx_cons = 0;
+	sc->arge_cdata.arge_tx_cnt = 0;
+
 	arge_reset_dma(sc);
 
 	sc->arge_link_status = 0;


More information about the Zrouter-src-freebsd mailing list