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
756f878b
Commit
756f878b
authored
Jul 26, 2022
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
Jul 29, 2022
Browse files
fix i40e simulator stuck at timestamp 500
parent
ff954ae3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
experiments/simbricks/nodeconfig.py
experiments/simbricks/nodeconfig.py
+1
-0
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+2
-2
No files found.
experiments/simbricks/nodeconfig.py
View file @
756f878b
...
...
@@ -51,6 +51,7 @@ class NodeConfig(object):
def
__init__
(
self
):
"""Manages the configuration for a node."""
super
().
__init__
()
self
.
sim
=
'qemu'
"""Name of simulator to run."""
self
.
ip
=
'10.0.0.1'
...
...
experiments/simbricks/simulators.py
View file @
756f878b
...
...
@@ -118,8 +118,8 @@ class NICSim(PCIDevSim):
def
basic_args
(
self
,
env
,
extra
=
None
):
cmd
=
(
f
'
{
env
.
dev_pci_path
(
self
)
}
{
env
.
nic_eth_path
(
self
)
}
'
f
'
{
env
.
dev_shm_path
(
self
)
}
{
self
.
sync_mode
}
{
self
.
s
ync_period
}
'
f
'
{
self
.
s
tart_tick
}
{
self
.
pci_latency
}
{
self
.
eth_latency
}
'
f
'
{
env
.
dev_shm_path
(
self
)
}
{
self
.
sync_mode
}
{
self
.
s
tart_tick
}
'
f
'
{
self
.
s
ync_period
}
{
self
.
pci_latency
}
{
self
.
eth_latency
}
'
)
if
self
.
mac
is
not
None
:
cmd
+=
' '
+
(
''
.
join
(
reversed
(
self
.
mac
.
split
(
':'
))))
...
...
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