vconn_sent counter is supposed to increase each time send() is called, no matter if the vconn log debug is on or off.
Signed-off-by: Cheng Li <lic...@chinatelecom.cn> --- lib/vconn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vconn.c b/lib/vconn.c index b556762..2513b03 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -681,8 +681,8 @@ do_send(struct vconn *vconn, struct ofpbuf *msg) ovs_assert(msg->size >= sizeof(struct ofp_header)); ofpmsg_update_length(msg); + COVERAGE_INC(vconn_sent); if (!VLOG_IS_DBG_ENABLED()) { - COVERAGE_INC(vconn_sent); retval = (vconn->vclass->send)(vconn, msg); } else { char *s = ofp_to_string(msg->data, msg->size, NULL, NULL, 1); -- 1.8.3.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev