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
4c2bb680
"...resnet50_tensorflow.git" did not exist on "68c04c174d67d8531e52da922eed29bbbbc83ee4"
Unverified
Commit
4c2bb680
authored
Sep 26, 2024
by
Jakob Görgen
Browse files
fixed nic eth vs pci interface bug
parent
6b024ca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
experiments/simbricks/orchestration/simulation/pcidev.py
experiments/simbricks/orchestration/simulation/pcidev.py
+4
-4
No files found.
experiments/simbricks/orchestration/simulation/pcidev.py
View file @
4c2bb680
...
...
@@ -67,15 +67,15 @@ class NICSim(PCIDevSim):
cmd
=
f
"
{
inst
.
join_repo_base
(
relative_path
=
self
.
_executable
)
}
"
pci_devices
=
self
.
filter_components_by_type
(
ty
=
sys_
eth
.
EthSimpleNIC
)
pci_devices
=
self
.
filter_components_by_type
(
ty
=
sys_
pcie
.
PCIeSimpleDevice
)
assert
len
(
pci_devices
)
==
1
socket
=
self
.
_get_socket
(
inst
=
inst
,
interface
=
pci_devices
[
0
].
_
eth
_if
)
socket
=
self
.
_get_socket
(
inst
=
inst
,
interface
=
pci_devices
[
0
].
_
pci
_if
)
assert
socket
is
not
None
and
socket
.
_type
==
inst_base
.
SockType
.
LISTEN
cmd
+=
f
"
{
socket
.
_path
}
"
eth_devices
=
self
.
filter_components_by_type
(
ty
=
sys_
pcie
.
PCIeSimpleDevice
)
eth_devices
=
self
.
filter_components_by_type
(
ty
=
sys_
eth
.
EthSimpleNIC
)
assert
len
(
eth_devices
)
==
1
socket
=
self
.
_get_socket
(
inst
=
inst
,
interface
=
eth_devices
[
0
].
_
pci
_if
)
socket
=
self
.
_get_socket
(
inst
=
inst
,
interface
=
eth_devices
[
0
].
_
eth
_if
)
assert
socket
is
not
None
and
socket
.
_type
==
inst_base
.
SockType
.
LISTEN
cmd
+=
f
"
{
socket
.
_path
}
"
...
...
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