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
f85d3658
Commit
f85d3658
authored
Jan 25, 2022
by
Jialin Li
Browse files
tofino: disable MAC aging
parent
2231bf37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sims/tofino/p4/nopaxos_setup.py
sims/tofino/p4/nopaxos_setup.py
+5
-5
No files found.
sims/tofino/p4/nopaxos_setup.py
View file @
f85d3658
...
@@ -141,11 +141,11 @@ class l2_switch():
...
@@ -141,11 +141,11 @@ class l2_switch():
self
.
p4
.
Ingress
.
smac
.
idle_table_set_notify
(
enable
=
False
,
self
.
p4
.
Ingress
.
smac
.
idle_table_set_notify
(
enable
=
False
,
callback
=
None
)
callback
=
None
)
self
.
p4
.
Ingress
.
smac
.
idle_table_set_notify
(
enable
=
True
,
#
self.p4.Ingress.smac.idle_table_set_notify(enable=True,
callback
=
self
.
aging_cb
,
#
callback=self.aging_cb,
interval
=
10000
,
#
interval = 10000,
min_ttl
=
10000
,
#
min_ttl = 10000,
max_ttl
=
60000
)
#
max_ttl = 60000)
print
(
"Done"
)
print
(
"Done"
)
@
staticmethod
@
staticmethod
...
...
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