diff options
Diffstat (limited to 'src/dev/net/Ethernet.py')
-rw-r--r-- | src/dev/net/Ethernet.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dev/net/Ethernet.py b/src/dev/net/Ethernet.py index 5f878ea10..981a19223 100644 --- a/src/dev/net/Ethernet.py +++ b/src/dev/net/Ethernet.py @@ -82,6 +82,18 @@ class EtherBus(EtherObject): dump = Param.EtherDump(NULL, "dump object") speed = Param.NetworkBandwidth('100Mbps', "bus speed in bits per second") +class EtherSwitch(EtherObject): + type = 'EtherSwitch' + cxx_header = "dev/net/etherswitch.hh" + dump = Param.EtherDump(NULL, "dump object") + fabric_speed = Param.NetworkBandwidth('10Gbps', "switch fabric speed in bits " + "per second") + interface = VectorMasterPort("Ethernet Interface") + output_buffer_size = Param.MemorySize('1MB', "size of output port buffers") + delay = Param.Latency('0us', "packet transmit delay") + delay_var = Param.Latency('0ns', "packet transmit delay variability") + time_to_live = Param.Latency('10ms', "time to live of MAC address maping") + class EtherTap(EtherObject): type = 'EtherTap' cxx_header = "dev/net/ethertap.hh" |