projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70eb684
)
When a packet has finished transmitting, kick the state
author
Nathan Binkert
<binkertn@umich.edu>
Fri, 23 Jul 2004 16:19:27 +0000
(12:19 -0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Fri, 23 Jul 2004 16:19:27 +0000
(12:19 -0400)
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
patch
|
blob
|
history
diff --git
a/dev/ns_gige.hh
b/dev/ns_gige.hh
index 79ae00e6496ec42ece855d16404233d11bb54393..6405dc6342a55515b6ab1b46c63faa0d80dc6a57 100644
(file)
--- a/
dev/ns_gige.hh
+++ b/
dev/ns_gige.hh
@@
-284,7
+284,13
@@
class NSGigE : public PciDev
* Retransmit event
*/
void transmit();
- typedef EventWrapper<NSGigE, &NSGigE::transmit> TxEvent;
+ void txEventTransmit()
+ {
+ transmit();
+ if (txState == txFifoBlock)
+ txKick();
+ }
+ typedef EventWrapper<NSGigE, &NSGigE::txEventTransmit> TxEvent;
friend class TxEvent;
TxEvent txEvent;