projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff7b689
)
Fix packet buffer management for receive packets
author
Nathan Binkert
<binkertn@umich.edu>
Sat, 25 Oct 2003 22:23:19 +0000
(18:23 -0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Sat, 25 Oct 2003 22:23:19 +0000
(18:23 -0400)
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
dev/etherlink.cc
patch
|
blob
|
history
diff --git
a/dev/etherlink.cc
b/dev/etherlink.cc
index e5665c7b14bfda58e1d04469c1413644354d2d90..40fa65d6f60790c2a9b581cd8984d58353767271 100644
(file)
--- 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());