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
fec1a467
"git@developer.sourcefind.cn:gaoqiong/composable_kernel.git" did not exist on "80e05267417f948e4f7e63c0fe807106d9a0c0ef"
Commit
fec1a467
authored
Jun 25, 2024
by
Hejing Li
Committed by
Jonas Kaufmann
Aug 20, 2024
Browse files
add corundum to spec and simulator
parent
15205fbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
experiments/simbricks/splitsim/impl.py
experiments/simbricks/splitsim/impl.py
+9
-0
experiments/simbricks/splitsim/specification.py
experiments/simbricks/splitsim/specification.py
+12
-1
No files found.
experiments/simbricks/splitsim/impl.py
View file @
fec1a467
...
...
@@ -147,6 +147,15 @@ class I40eNicSim(NICSim):
return
self
.
basic_run_cmd
(
env
,
'/i40e_bm/i40e_bm'
)
class
CorundumBMNICSim
(
NICSim
):
def
__init__
(
self
,
e
:
exp
.
Experiment
):
super
().
__init__
(
e
)
def
run_cmd
(
self
,
env
:
ExpEnv
)
->
str
:
return
self
.
basic_run_cmd
(
env
,
'/corundum_bm/corundum_bm'
)
class
HostSim
(
Simulator
):
def
__init__
(
self
,
e
:
exp
.
Experiment
):
...
...
experiments/simbricks/splitsim/specification.py
View file @
fec1a467
...
...
@@ -204,6 +204,14 @@ class LinuxHost(Host):
l
.
append
(
f
'ip addr add
{
self
.
ip
}
/
{
self
.
prefix
}
dev
{
self
.
ifname
}
'
)
return
super
().
prepare_post_cp
()
+
l
def
config_files
(
self
)
->
tp
.
Dict
[
str
,
tp
.
IO
]:
for
d
in
self
.
nic_driver
:
if
d
[
0
]
==
'/'
:
m
=
{
'mqnic.ko'
:
open
(
'../images/mqnic/mqnic.ko'
,
'rb'
)}
return
{
**
m
,
**
super
().
config_files
()}
"""
Pci device NIC
It has both pci and eth channel
...
...
@@ -229,7 +237,10 @@ class i40eNIC(NIC):
super
().
__init__
(
sys
)
self
.
type
=
'i40e'
class
CorundumNIC
(
NIC
):
def
__init__
(
self
,
sys
)
->
None
:
super
().
__init__
(
sys
)
self
.
type
=
'corundum_bm'
"""
Network device
It only has eth channel
...
...
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