From: Nathan Binkert Date: Fri, 23 Jul 2004 16:19:27 +0000 (-0400) Subject: When a packet has finished transmitting, kick the state X-Git-Tag: m5_1.0_tutorial~220 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0650e4a43f45b68aebc2e06c01bda1ac0e094e5e;p=gem5.git When a packet has finished transmitting, kick the state machine too. The fifo may have been full and we want to get another packet into it if we can. --HG-- extra : convert_revision : 8f57294bd18f5eccb900118f2de83a4ccfd20dbb --- diff --git a/dev/ns_gige.hh b/dev/ns_gige.hh index 79ae00e64..6405dc634 100644 --- a/dev/ns_gige.hh +++ b/dev/ns_gige.hh @@ -284,7 +284,13 @@ class NSGigE : public PciDev * Retransmit event */ void transmit(); - typedef EventWrapper TxEvent; + void txEventTransmit() + { + transmit(); + if (txState == txFifoBlock) + txKick(); + } + typedef EventWrapper TxEvent; friend class TxEvent; TxEvent txEvent;