dev: Add a missing parameter to the EtherTap device.
authorGabe Black <gabeblack@google.com>
Thu, 1 Jun 2017 22:03:40 +0000 (15:03 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 2 Jun 2017 00:07:55 +0000 (00:07 +0000)
There needs to be a SlavePort called "tap" for the ethertap device to be
able to connect to the gem5 network successfully.

Change-Id: I1ad81219f612fd1ec278c6148af728d20bc916da
Reviewed-on: https://gem5-review.googlesource.com/3580
Reviewed-by: Nathan Binkert <nate@binkert.org>
Maintainer: Nathan Binkert <nate@binkert.org>

src/dev/net/Ethernet.py

index d79aa138a9623fd83d39317a8f55a9ca76ee7f93..da1e5720d19a455dda99bb88f30d004580f1dedb 100644 (file)
@@ -101,6 +101,7 @@ class EtherTap(EtherObject):
     bufsz = Param.Int(10000, "tap buffer size")
     dump = Param.EtherDump(NULL, "dump object")
     port = Param.UInt16(3500, "tap port")
+    tap = SlavePort("Ethernet interface")
 
 class EtherDump(SimObject):
     type = 'EtherDump'