dev: Add 'simLength' parameter in EthPacketData
authormlebeane <michael.lebeane@amd.com>
Thu, 27 Oct 2016 02:48:33 +0000 (22:48 -0400)
committermlebeane <michael.lebeane@amd.com>
Thu, 27 Oct 2016 02:48:33 +0000 (22:48 -0400)
commit96905971f26e5218baebf8f953f05a9b341f9cc6
tree4f2d06b18a4fc4bc92a4303e02e5c7668e2ec043
parentde72e36619350f9b3e3a3dc8de63b490c4cecf2d
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.
14 files changed:
src/dev/net/dist_etherlink.cc
src/dev/net/dist_iface.cc
src/dev/net/dist_packet.hh
src/dev/net/etherbus.cc
src/dev/net/etherlink.cc
src/dev/net/etherpkt.cc
src/dev/net/etherpkt.hh
src/dev/net/etherswitch.cc
src/dev/net/ethertap.cc
src/dev/net/i8254xGBe.cc
src/dev/net/ns_gige.cc
src/dev/net/pktfifo.cc
src/dev/net/sinic.cc
src/dev/net/tcp_iface.cc