IGbE: Clean up debug printing and proprly account for copied bytes.
authorAli Saidi <Ali.Saidi@ARM.com>
Tue, 13 Sep 2011 17:06:13 +0000 (12:06 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Tue, 13 Sep 2011 17:06:13 +0000 (12:06 -0500)
commit6caea472a9c192e38ad5057dc0053c72786f8584
tree886d75f6acc2c0d77e2578e16aa4dceddc7f1c81
parentcbb23a1d3c3df9d6bed34f50a0193b93319477e6
IGbE: Clean up debug printing and proprly account for copied bytes.

Some DPRINTFs were printing uninitalized values because the DPRINTFs were
always being printed even when the features they were printing weren't
being used. This change moves the DPRINTFs into the appropriate if blocks
and initializes the state variables correctly.

There also is a case where the offset into the packet could be calculated
incorrectly during a DMA that is fixed.
src/dev/i8254xGBe.cc