]> git.proxmox.com Git - mirror_ovs.git/commit - lib/mac-learning.h
ofproto: Add CLI commands to show and clear mac_learning statistics
authorEelco Chaudron <echaudro@redhat.com>
Mon, 25 Jun 2018 10:58:05 +0000 (12:58 +0200)
committerBen Pfaff <blp@ovn.org>
Fri, 6 Jul 2018 21:26:20 +0000 (14:26 -0700)
commit95dcecc5b5df36011872dc108f5cc65fbcc7d0d0
tree0c49da0eece3a2060294bcf745a4857dfa4bb53b
parent4ef1edf085a2160a79ec043f885e62b25d2b92a7
ofproto: Add CLI commands to show and clear mac_learning statistics

Add two new commands, fdb/stats-show and fdb/stats-clear, to
ovs-appctl to show and clear the new mac_learning statistics.

$ ovs-appctl fdb/stats-show ovs_pvp_br0
Statistics for bridge "ovs_pvp_br0":
  Current/maximum MAC entries in the table: 4/2048
  Total number of learned MAC entries     : 4
  Total number of expired MAC entries     : 1
  Total number of evicted MAC entries     : 0
  Total number of port moved MAC entries  : 32

$ ovs-appctl fdb/stats-clear ovs_pvp_br0
statistics successfully cleared

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/mac-learning.c
lib/mac-learning.h
ofproto/ofproto-dpif.c