Review Board 2.0.15


dev: Add 'simLength' parameter in EthPacketData

Review Request #3493 - Created May 31, 2016 and submitted - Latest diff uploaded

Information
Michael LeBeane
gem5
default
Reviewers
Default

Changeset 11637:cd6bb67002fa
---------------------------
dev: Add 'simLength' parameter in EthPacketData
Currently, all the network devices create a 16K buffer for the 'data' field
in EthPacketData, and use 'length' to keep track of the size of the packet
in the buffer. This patch introduces the 'simLength' parameter to
EthPacketData, which is used to hold the effective length of the packet used
for all timing calulations in the simulator. Serialization is performed using
only the useful data in the packet ('length') and not necessarily the entire
original buffer.