Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
917aaeb9
Commit
917aaeb9
authored
Jun 05, 2022
by
Antoine Kaufmann
Browse files
experiments: parameter to set HW mac address for nicbm nic models
parent
4949bc00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+3
-0
No files found.
experiments/simbricks/simulators.py
View file @
917aaeb9
...
...
@@ -90,6 +90,7 @@ class PCIDevSim(Simulator):
class
NICSim
(
PCIDevSim
):
network
=
None
mac
=
None
eth_latency
=
500
def
__init__
(
self
):
...
...
@@ -104,6 +105,8 @@ class NICSim(PCIDevSim):
(
env
.
dev_pci_path
(
self
),
env
.
nic_eth_path
(
self
),
env
.
dev_shm_path
(
self
),
self
.
sync_mode
,
self
.
start_tick
,
self
.
sync_period
,
self
.
pci_latency
,
self
.
eth_latency
)
if
self
.
mac
is
not
None
:
cmd
+=
' '
+
(
''
.
join
(
reversed
(
self
.
mac
.
split
(
':'
))))
if
extra
is
not
None
:
cmd
+=
' '
+
extra
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment