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
35da37f9
Commit
35da37f9
authored
Jun 08, 2022
by
Jialin Li
Browse files
tofino: move tofino into sims/net for consistency
parent
ba969986
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
3 additions
and
3 deletions
+3
-3
.gitignore
.gitignore
+1
-1
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+1
-1
sims/net/rules.mk
sims/net/rules.mk
+1
-0
sims/net/tofino/p4/l2_switch.p4
sims/net/tofino/p4/l2_switch.p4
+0
-0
sims/net/tofino/p4/nopaxos.p4
sims/net/tofino/p4/nopaxos.p4
+0
-0
sims/net/tofino/p4/nopaxos_setup.py
sims/net/tofino/p4/nopaxos_setup.py
+0
-0
sims/net/tofino/p4/switch_setup.py
sims/net/tofino/p4/switch_setup.py
+0
-0
sims/net/tofino/rules.mk
sims/net/tofino/rules.mk
+0
-0
sims/net/tofino/tofino.cc
sims/net/tofino/tofino.cc
+0
-0
sims/rules.mk
sims/rules.mk
+0
-1
No files found.
.gitignore
View file @
35da37f9
...
@@ -16,7 +16,7 @@ sims/net/tap/net_tap
...
@@ -16,7 +16,7 @@ sims/net/tap/net_tap
sims/net/switch/net_switch
sims/net/switch/net_switch
sims/net/menshen/menshen_hw
sims/net/menshen/menshen_hw
sims/net/menshen/obj_dir
sims/net/menshen/obj_dir
sims/tofino/tofino
sims/
net/
tofino/tofino
doc/doxygen
doc/doxygen
doc/_build
doc/_build
images/kernel/kheaders/
images/kernel/kheaders/
...
...
experiments/simbricks/simulators.py
View file @
35da37f9
...
@@ -503,7 +503,7 @@ class TofinoNet(NetSim):
...
@@ -503,7 +503,7 @@ class TofinoNet(NetSim):
super
().
__init__
()
super
().
__init__
()
def
run_cmd
(
self
,
env
):
def
run_cmd
(
self
,
env
):
cmd
=
env
.
repodir
+
'/sims/tofino/tofino'
cmd
=
env
.
repodir
+
'/sims/
net/
tofino/tofino'
cmd
+=
f
' -S
{
self
.
sync_period
}
-E
{
self
.
eth_latency
}
-t
{
self
.
tofino_log_path
}
'
cmd
+=
f
' -S
{
self
.
sync_period
}
-E
{
self
.
eth_latency
}
-t
{
self
.
tofino_log_path
}
'
if
not
self
.
sync
:
if
not
self
.
sync
:
cmd
+=
' -u'
cmd
+=
' -u'
...
...
sims/net/rules.mk
View file @
35da37f9
...
@@ -27,5 +27,6 @@ $(eval $(call subdir,tap))
...
@@ -27,5 +27,6 @@ $(eval $(call subdir,tap))
$(eval
$(call
subdir,switch))
$(eval
$(call
subdir,switch))
$(eval
$(call
subdir,pktgen))
$(eval
$(call
subdir,pktgen))
$(eval
$(call
subdir,menshen))
$(eval
$(call
subdir,menshen))
$(eval
$(call
subdir,tofino))
include
mk/subdir_post.mk
include
mk/subdir_post.mk
sims/tofino/p4/l2_switch.p4
→
sims/
net/
tofino/p4/l2_switch.p4
View file @
35da37f9
File moved
sims/tofino/p4/nopaxos.p4
→
sims/
net/
tofino/p4/nopaxos.p4
View file @
35da37f9
File moved
sims/tofino/p4/nopaxos_setup.py
→
sims/
net/
tofino/p4/nopaxos_setup.py
View file @
35da37f9
File moved
sims/tofino/p4/switch_setup.py
→
sims/
net/
tofino/p4/switch_setup.py
View file @
35da37f9
File moved
sims/tofino/rules.mk
→
sims/
net/
tofino/rules.mk
View file @
35da37f9
File moved
sims/tofino/tofino.cc
→
sims/
net/
tofino/tofino.cc
View file @
35da37f9
File moved
sims/rules.mk
View file @
35da37f9
...
@@ -25,6 +25,5 @@ include mk/subdir_pre.mk
...
@@ -25,6 +25,5 @@ include mk/subdir_pre.mk
$(eval
$(call
subdir,external))
$(eval
$(call
subdir,external))
$(eval
$(call
subdir,net))
$(eval
$(call
subdir,net))
$(eval
$(call
subdir,nic))
$(eval
$(call
subdir,nic))
$(eval
$(call
subdir,tofino))
include
mk/subdir_post.mk
include
mk/subdir_post.mk
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