Commit fec1a467 authored by Hejing Li's avatar Hejing Li Committed by Jonas Kaufmann
Browse files

add corundum to spec and simulator

parent 15205fbc
...@@ -147,6 +147,15 @@ class I40eNicSim(NICSim): ...@@ -147,6 +147,15 @@ class I40eNicSim(NICSim):
return self.basic_run_cmd(env, '/i40e_bm/i40e_bm') 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): class HostSim(Simulator):
def __init__(self, e: exp.Experiment): def __init__(self, e: exp.Experiment):
......
...@@ -204,6 +204,14 @@ class LinuxHost(Host): ...@@ -204,6 +204,14 @@ class LinuxHost(Host):
l.append(f'ip addr add {self.ip}/{self.prefix} dev {self.ifname}') l.append(f'ip addr add {self.ip}/{self.prefix} dev {self.ifname}')
return super().prepare_post_cp() + l 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 Pci device NIC
It has both pci and eth channel It has both pci and eth channel
...@@ -229,7 +237,10 @@ class i40eNIC(NIC): ...@@ -229,7 +237,10 @@ class i40eNIC(NIC):
super().__init__(sys) super().__init__(sys)
self.type = 'i40e' self.type = 'i40e'
class CorundumNIC(NIC):
def __init__(self, sys) -> None:
super().__init__(sys)
self.type = 'corundum_bm'
""" """
Network device Network device
It only has eth channel It only has eth channel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment