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.
// 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);
}
}