dist, dev: Fixed the packet ordering in etherswitch
authorMohammad Alian <m.alian1369@gmail.com>
Wed, 8 Jun 2016 14:12:41 +0000 (09:12 -0500)
committerMohammad Alian <m.alian1369@gmail.com>
Wed, 8 Jun 2016 14:12:41 +0000 (09:12 -0500)
commite5b7b6780f9748b6f13ef91e3e22d53ebdf47968
treeeeeae13da4325af9fa7729a15fd0e79de8053f92
parent8d177d128f14831f9490467863efb9c92d1480bc
dist, dev: Fixed the packet ordering in etherswitch

This patch fixes the order that packets gets pushed into the output fifo
of etherswitch. If two packets arrive at the same tick to the etherswitch,
we sort and push them based on their source port id.
In dist-gem5 simulations, if there is no ordering inforced while two
packets arrive at the same tick, it can lead to non-deterministic simulations

Committed by Jason Lowe-Power <power.jg@gmail.com>
src/dev/net/etherswitch.cc
src/dev/net/etherswitch.hh
util/cpt_upgraders/etherswitch.py [new file with mode: 0644]