[ovs-dev] [PATCH 3/5] utilities: Update gdb script to include mac_learning counters

Eelco Chaudron echaudro at redhat.com
Mon Jun 25 10:57:52 UTC 2018


This patch updates the GDB script "ovs_show_fdb" command to include
the new per mac_learning instance counters.

Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
---
 utilities/gdb/ovs_gdb.py |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/utilities/gdb/ovs_gdb.py b/utilities/gdb/ovs_gdb.py
index 65f9216d9..4e9dac040 100644
--- a/utilities/gdb/ovs_gdb.py
+++ b/utilities/gdb/ovs_gdb.py
@@ -797,6 +797,10 @@ class CmdShowFDB(gdb.Command):
         print("{}ports_by_ptr.n  : {}".format(indent, ml['ports_by_ptr']['n']))
         print("{}ports_by_usage.n: {}".format(indent,
                                               ml['ports_by_usage']['n']))
+        print("{}total_learned   : {}".format(indent, ml['total_learned']))
+        print("{}total_expired   : {}".format(indent, ml['total_expired']))
+        print("{}total_evicted   : {}".format(indent, ml['total_evicted']))
+        print("{}total_moved     : {}".format(indent, ml['total_moved']))
 
     @staticmethod
     def display_mac_entry(mac_entry, indent=0, dbg=False):



More information about the dev mailing list