summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-10-25 18:23:19 -0400
committerNathan Binkert <binkertn@umich.edu>2003-10-25 18:23:19 -0400
commitd4343f91d5cd7d15c6a93919a9e0d9c83284e534 (patch)
tree7df73aa362bbab53266dc9e920fb127fb0bf06c1 /dev
parentff7b6892bcd00c53e1aa8beb86f5da2ab90fe733 (diff)
downloadgem5-d4343f91d5cd7d15c6a93919a9e0d9c83284e534.tar.xz
Fix packet buffer management for receive packets
dev/etherlink.cc: DPRINTF before the packet is sent to the other interface to make the output a little more understandable --HG-- extra : convert_revision : 9c7dd5dd6dbbbc416db70a52228e918af2e76d96
Diffstat (limited to 'dev')
-rw-r--r--dev/etherlink.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/etherlink.cc b/dev/etherlink.cc
index e5665c7b1..40fa65d6f 100644
--- a/dev/etherlink.cc
+++ b/dev/etherlink.cc
@@ -87,14 +87,14 @@ EtherLink::Link::Link(const std::string &name, double rate, EtherDump *d)
void
EtherLink::Link::txDone()
{
- rxint->sendPacket(packet);
-
if (dump)
dump->dump(packet);
DPRINTF(Ethernet, "EtherLink packet received: len=%d\n", packet->length);
DDUMP(EthernetData, packet->data, packet->length);
+ rxint->sendPacket(packet);
+
packet = 0;
assert(!busy());