This commit uses coverage counter to monitor the rate of 'struct tnl_port' reconfiguration.
Signed-off-by: Alex Wang <al...@nicira.com> --- ofproto/tunnel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ofproto/tunnel.c b/ofproto/tunnel.c index d079a24..722a5cf 100644 --- a/ofproto/tunnel.c +++ b/ofproto/tunnel.c @@ -19,6 +19,7 @@ #include "byte-order.h" #include "connectivity.h" +#include "coverage.h" #include "csum.h" #include "dpif.h" #include "dynamic-string.h" @@ -42,6 +43,8 @@ VLOG_DEFINE_THIS_MODULE(tunnel); +COVERAGE_DEFINE(tnl_reconfig); + /* skb mark used for IPsec tunnel packets */ #define IPSEC_MARK 1 @@ -234,6 +237,7 @@ tnl_port_reconfigure(const struct ofport_dpif *ofport, || tnl_port->match.odp_port != odp_port || tnl_port->change_seq != netdev_get_change_seq(tnl_port->netdev)) { VLOG_DBG("reconfiguring %s", tnl_port_get_name(tnl_port)); + COVERAGE_INC(tnl_reconfig); tnl_port_del__(ofport); tnl_port_add__(ofport, netdev, odp_port, true, native_tnl, name); changed = true; -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev