From 5f7952f8e1ec0eca045742ab3d3290464e24873d Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 29 Sep 2005 17:09:53 -0400 Subject: [PATCH] fix for delayed state machine changes --HG-- extra : convert_revision : db19e3687f48799725a9062e014588d318988cee --- dev/ns_gige.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index 6aae7b9eb..47cd4d7da 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -1840,6 +1840,8 @@ NSGigE::rxKick() CRDD = true; goto exit; } else { + if (rxDmaState != dmaIdle) + goto exit; rxState = rxDescRead; regs.rxdp = rxDescCache.link; CRDD = false; @@ -2286,6 +2288,8 @@ NSGigE::txKick() txState = txIdle; goto exit; } else { + if (txDmaState != dmaIdle) + goto exit; txState = txDescRead; regs.txdp = txDescCache.link; CTDD = false;