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
This commit is contained in:
Nathan Binkert 2004-07-23 12:19:27 -04:00
parent 70eb684500
commit 0650e4a43f

View file

@ -284,7 +284,13 @@ class NSGigE : public PciDev
* Retransmit event * Retransmit event
*/ */
void transmit(); void transmit();
typedef EventWrapper<NSGigE, &NSGigE::transmit> TxEvent; void txEventTransmit()
{
transmit();
if (txState == txFifoBlock)
txKick();
}
typedef EventWrapper<NSGigE, &NSGigE::txEventTransmit> TxEvent;
friend class TxEvent; friend class TxEvent;
TxEvent txEvent; TxEvent txEvent;