diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-06-19 22:13:31 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-06-19 22:13:31 -0400 |
commit | 11894d3b4b85160e1cc0c0a20157f89dcd3bae6c (patch) | |
tree | cd5110e076b8deb8a76e6be76165da8f584945ce | |
parent | 5a7bb8b3d235f967415975251b384f57c0dcd7cc (diff) | |
download | gem5-11894d3b4b85160e1cc0c0a20157f89dcd3bae6c.tar.xz |
little bit of formatting
clean up debugging a bit
dev/ns_gige.cc:
little bit of formatting
don't break in the debugger if a packet is dropped when the
receiver is disabled since it can realistically happen
--HG--
extra : convert_revision : 364efa3eb16990db191085f5b847c3bb255a173c
-rw-r--r-- | dev/ns_gige.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index 28c25dc35..108f2616c 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -473,8 +473,9 @@ NSGigE::regStats() coalescedTxDesc = totalTxDesc / postedInterrupts; coalescedRxOrn = totalRxOrn / postedInterrupts; - coalescedTotal = (totalSwi + totalRxIdle + totalRxOk + totalRxDesc + totalTxOk - + totalTxIdle + totalTxDesc + totalRxOrn) / postedInterrupts; + coalescedTotal = (totalSwi + totalRxIdle + totalRxOk + totalRxDesc + + totalTxOk + totalTxIdle + totalTxDesc + + totalRxOrn) / postedInterrupts; txBandwidth = txBytes * Stats::constant(8) / simSeconds; rxBandwidth = rxBytes * Stats::constant(8) / simSeconds; @@ -1956,7 +1957,6 @@ NSGigE::txKick() if (txKickTick > curTick) { DPRINTF(EthernetSM, "transmit kick exiting, can't run till %d\n", txKickTick); - return; } @@ -2293,7 +2293,6 @@ NSGigE::recvPacket(PacketPtr packet) if (!rxEnable) { DPRINTF(Ethernet, "receive disabled...packet dropped\n"); - debug_break(); interface->recvDone(); return true; } |