summaryrefslogtreecommitdiff
path: root/src/dev/i8254xGBe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/i8254xGBe.cc')
-rw-r--r--src/dev/i8254xGBe.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dev/i8254xGBe.cc b/src/dev/i8254xGBe.cc
index 1f2c92425..14d767288 100644
--- a/src/dev/i8254xGBe.cc
+++ b/src/dev/i8254xGBe.cc
@@ -44,6 +44,7 @@
#include "base/inet.hh"
#include "base/trace.hh"
+#include "debug/Drain.hh"
#include "debug/EthernetAll.hh"
#include "dev/i8254xGBe.hh"
#include "mem/packet.hh"
@@ -2072,12 +2073,12 @@ IGbE::drain(Event *de)
if (tickEvent.scheduled())
deschedule(tickEvent);
- if (count)
+ if (count) {
+ DPRINTF(Drain, "IGbE not drained\n");
changeState(Draining);
- else
+ } else
changeState(Drained);
- DPRINTF(EthernetSM, "got drain() returning %d", count);
return count;
}
@@ -2100,12 +2101,12 @@ IGbE::checkDrain()
if (!drainEvent)
return;
- DPRINTF(EthernetSM, "checkDrain() in drain\n");
txFifoTick = false;
txTick = false;
rxTick = false;
if (!rxDescCache.hasOutstandingEvents() &&
!txDescCache.hasOutstandingEvents()) {
+ DPRINTF(Drain, "IGbE done draining, processing drain event\n");
drainEvent->process();
drainEvent = NULL;
}