diff options
Diffstat (limited to 'src/dev/net/Ethernet.py')
-rw-r--r-- | src/dev/net/Ethernet.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/dev/net/Ethernet.py b/src/dev/net/Ethernet.py index 7c3c766bc..6e900e0e8 100644 --- a/src/dev/net/Ethernet.py +++ b/src/dev/net/Ethernet.py @@ -44,14 +44,10 @@ from m5.params import * from m5.proxy import * from m5.objects.PciDevice import PciDevice -class EtherObject(SimObject): - type = 'EtherObject' - abstract = True - cxx_header = "dev/net/etherobject.hh" - -class EtherLink(EtherObject): +class EtherLink(SimObject): type = 'EtherLink' cxx_header = "dev/net/etherlink.hh" + cxx_extra_bases = [ "EtherObject" ] int0 = SlavePort("interface 0") int1 = SlavePort("interface 1") delay = Param.Latency('0us', "packet transmit delay") @@ -59,9 +55,10 @@ class EtherLink(EtherObject): speed = Param.NetworkBandwidth('1Gbps', "link speed") dump = Param.EtherDump(NULL, "dump object") -class DistEtherLink(EtherObject): +class DistEtherLink(SimObject): type = 'DistEtherLink' cxx_header = "dev/net/dist_etherlink.hh" + cxx_extra_bases = [ "EtherObject" ] int0 = SlavePort("interface 0") delay = Param.Latency('0us', "packet transmit delay") delay_var = Param.Latency('0ns', "packet transmit delay variability") @@ -77,16 +74,18 @@ class DistEtherLink(EtherObject): dist_sync_on_pseudo_op = Param.Bool(False, "Start sync with pseudo_op") num_nodes = Param.UInt32('2', "Number of simulate nodes") -class EtherBus(EtherObject): +class EtherBus(SimObject): type = 'EtherBus' cxx_header = "dev/net/etherbus.hh" + cxx_extra_bases = [ "EtherObject" ] loopback = Param.Bool(True, "send packet back to the sending interface") dump = Param.EtherDump(NULL, "dump object") speed = Param.NetworkBandwidth('100Mbps', "bus speed in bits per second") -class EtherSwitch(EtherObject): +class EtherSwitch(SimObject): type = 'EtherSwitch' cxx_header = "dev/net/etherswitch.hh" + cxx_extra_bases = [ "EtherObject" ] dump = Param.EtherDump(NULL, "dump object") fabric_speed = Param.NetworkBandwidth('10Gbps', "switch fabric speed in bits " "per second") @@ -96,10 +95,11 @@ class EtherSwitch(EtherObject): delay_var = Param.Latency('0ns', "packet transmit delay variability") time_to_live = Param.Latency('10ms', "time to live of MAC address maping") -class EtherTapBase(EtherObject): +class EtherTapBase(SimObject): type = 'EtherTapBase' abstract = True cxx_header = "dev/net/ethertap.hh" + cxx_extra_bases = [ "EtherObject" ] bufsz = Param.Int(10000, "tap buffer size") dump = Param.EtherDump(NULL, "dump object") tap = SlavePort("Ethernet interface to connect to gem5's network") |