Commit f85d3658 authored by Jialin Li's avatar Jialin Li
Browse files

tofino: disable MAC aging

parent 2231bf37
...@@ -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
......
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