changeset a16337161285 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=a16337161285
description:
        dev, dist: Fixed a scheduling bug in the etherswitch

        This patch fixes a bug in etherswitch. When a packet gets inserted
        in the output fifo, the txEvent has to always be reschedule,
        not only when an event is already scheduled. This can raise
        the assertion in the reschedule function.

diffstat:

 src/dev/net/etherswitch.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 704b0198f747 -r a16337161285 src/dev/net/etherswitch.cc
--- a/src/dev/net/etherswitch.cc        Mon Jul 11 16:30:35 2016 +0100
+++ b/src/dev/net/etherswitch.cc        Tue Jul 19 09:48:56 2016 -0500
@@ -172,7 +172,7 @@
     // to send this packet out the external link
     // otherwise, there is already a txEvent scheduled
     if (outputFifo.push(packet, senderId)) {
-        parent->reschedule(txEvent, curTick() + switchingDelay());
+        parent->reschedule(txEvent, curTick() + switchingDelay(), true);
     }
 }
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to