Wrap tracing stuff in #if TRACING_ON to avoid compile error
in m5.fast --HG-- extra : convert_revision : 329d810bfe282e88133ca35da62ee6dcc73a38f5
This commit is contained in:
parent
e76c98e6be
commit
5b1da825d8
1 changed files with 4 additions and 0 deletions
|
@ -1394,6 +1394,7 @@ NSGigE::rxKick()
|
||||||
rxPktBytes = rxPacket->length;
|
rxPktBytes = rxPacket->length;
|
||||||
rxPacketBufPtr = rxPacket->data;
|
rxPacketBufPtr = rxPacket->data;
|
||||||
|
|
||||||
|
#if TRACING_ON
|
||||||
if (DTRACE(Ethernet)) {
|
if (DTRACE(Ethernet)) {
|
||||||
if (rxPacket->isIpPkt()) {
|
if (rxPacket->isIpPkt()) {
|
||||||
ip_header *ip = rxPacket->getIpHdr();
|
ip_header *ip = rxPacket->getIpHdr();
|
||||||
|
@ -1406,6 +1407,7 @@ NSGigE::rxKick()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// sanity check - i think the driver behaves like this
|
// sanity check - i think the driver behaves like this
|
||||||
assert(rxDescCnt >= rxPktBytes);
|
assert(rxDescCnt >= rxPktBytes);
|
||||||
|
@ -1594,6 +1596,7 @@ NSGigE::transmit()
|
||||||
DPRINTF(Ethernet, "\n\nAttempt Pkt Transmit: txFifo length = %d\n",
|
DPRINTF(Ethernet, "\n\nAttempt Pkt Transmit: txFifo length = %d\n",
|
||||||
maxTxFifoSize - txFifoAvail);
|
maxTxFifoSize - txFifoAvail);
|
||||||
if (interface->sendPacket(txFifo.front())) {
|
if (interface->sendPacket(txFifo.front())) {
|
||||||
|
#if TRACING_ON
|
||||||
if (DTRACE(Ethernet)) {
|
if (DTRACE(Ethernet)) {
|
||||||
if (txFifo.front()->isIpPkt()) {
|
if (txFifo.front()->isIpPkt()) {
|
||||||
ip_header *ip = txFifo.front()->getIpHdr();
|
ip_header *ip = txFifo.front()->getIpHdr();
|
||||||
|
@ -1606,6 +1609,7 @@ NSGigE::transmit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DDUMP(Ethernet, txFifo.front()->data, txFifo.front()->length);
|
DDUMP(Ethernet, txFifo.front()->data, txFifo.front()->length);
|
||||||
txBytes += txFifo.front()->length;
|
txBytes += txFifo.front()->length;
|
||||||
|
|
Loading…
Reference in a new issue