summaryrefslogtreecommitdiff
path: root/src/dev/net/etherlink.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/net/etherlink.cc')
-rw-r--r--src/dev/net/etherlink.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dev/net/etherlink.cc b/src/dev/net/etherlink.cc
index 0975ba446..9a11018bb 100644
--- a/src/dev/net/etherlink.cc
+++ b/src/dev/net/etherlink.cc
@@ -116,7 +116,8 @@ EtherLink::Link::Link(const string &name, EtherLink *p, int num,
double rate, Tick delay, Tick delay_var, EtherDump *d)
: objName(name), parent(p), number(num), txint(NULL), rxint(NULL),
ticksPerByte(rate), linkDelay(delay), delayVar(delay_var), dump(d),
- doneEvent(this), txQueueEvent(this)
+ doneEvent([this]{ txDone(); }, name),
+ txQueueEvent([this]{ processTxQueue(); }, name)
{ }
void