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
This commit is contained in:
parent
ff7b6892bc
commit
d4343f91d5
|
@ -87,14 +87,14 @@ EtherLink::Link::Link(const std::string &name, double rate, EtherDump *d)
|
||||||
void
|
void
|
||||||
EtherLink::Link::txDone()
|
EtherLink::Link::txDone()
|
||||||
{
|
{
|
||||||
rxint->sendPacket(packet);
|
|
||||||
|
|
||||||
if (dump)
|
if (dump)
|
||||||
dump->dump(packet);
|
dump->dump(packet);
|
||||||
|
|
||||||
DPRINTF(Ethernet, "EtherLink packet received: len=%d\n", packet->length);
|
DPRINTF(Ethernet, "EtherLink packet received: len=%d\n", packet->length);
|
||||||
DDUMP(EthernetData, packet->data, packet->length);
|
DDUMP(EthernetData, packet->data, packet->length);
|
||||||
|
|
||||||
|
rxint->sendPacket(packet);
|
||||||
|
|
||||||
packet = 0;
|
packet = 0;
|
||||||
assert(!busy());
|
assert(!busy());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue