From 0650e4a43f45b68aebc2e06c01bda1ac0e094e5e Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 23 Jul 2004 12:19:27 -0400 Subject: [PATCH] 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 --- dev/ns_gige.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2