Ethernet.py (12052:616deda85421) Ethernet.py (12054:ab04045965d1)
1# Copyright (c) 2015 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 81 unchanged lines hidden (view full) ---

90 fabric_speed = Param.NetworkBandwidth('10Gbps', "switch fabric speed in bits "
91 "per second")
92 interface = VectorMasterPort("Ethernet Interface")
93 output_buffer_size = Param.MemorySize('1MB', "size of output port buffers")
94 delay = Param.Latency('0us', "packet transmit delay")
95 delay_var = Param.Latency('0ns', "packet transmit delay variability")
96 time_to_live = Param.Latency('10ms', "time to live of MAC address maping")
97
1# Copyright (c) 2015 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 81 unchanged lines hidden (view full) ---

90 fabric_speed = Param.NetworkBandwidth('10Gbps', "switch fabric speed in bits "
91 "per second")
92 interface = VectorMasterPort("Ethernet Interface")
93 output_buffer_size = Param.MemorySize('1MB', "size of output port buffers")
94 delay = Param.Latency('0us', "packet transmit delay")
95 delay_var = Param.Latency('0ns', "packet transmit delay variability")
96 time_to_live = Param.Latency('10ms', "time to live of MAC address maping")
97
98class EtherTap(EtherObject):
99 type = 'EtherTap'
98class EtherTapStub(EtherObject):
99 type = 'EtherTapStub'
100 cxx_header = "dev/net/ethertap.hh"
101 bufsz = Param.Int(10000, "tap buffer size")
102 dump = Param.EtherDump(NULL, "dump object")
100 cxx_header = "dev/net/ethertap.hh"
101 bufsz = Param.Int(10000, "tap buffer size")
102 dump = Param.EtherDump(NULL, "dump object")
103 port = Param.UInt16(3500, "tap port")
104 tap = SlavePort("Ethernet interface")
103 port = Param.UInt16(3500, "Port helper should send packets to")
104 tap = SlavePort("Ethernet interface to gem5's network")
105
106class EtherDump(SimObject):
107 type = 'EtherDump'
108 cxx_header = "dev/net/etherdump.hh"
109 file = Param.String("dump file")
110 maxlen = Param.Int(96, "max portion of packet data to dump")
111
112class EtherDevice(PciDevice):

--- 150 unchanged lines hidden ---
105
106class EtherDump(SimObject):
107 type = 'EtherDump'
108 cxx_header = "dev/net/etherdump.hh"
109 file = Param.String("dump file")
110 maxlen = Param.Int(96, "max portion of packet data to dump")
111
112class EtherDevice(PciDevice):

--- 150 unchanged lines hidden ---