Here's an incremental which I think should address your concerns.

---
 ofproto/ofproto-dpif.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 69d59fc..0b16bfa 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -5045,8 +5045,13 @@ facet_push_stats(struct facet *facet)
 static void
 push_all_stats(void)
 {
+    static long long int rl = LLONG_MIN;
     struct ofproto_dpif *ofproto;
 
+    if (time_msec() < rl) {
+        return;
+    }
+
     HMAP_FOR_EACH (ofproto, all_ofproto_dpifs_node, &all_ofproto_dpifs) {
         struct facet *facet;
 
@@ -5054,6 +5059,8 @@ push_all_stats(void)
             facet_push_stats(facet);
         }
     }
+
+    rl = time_msec() + 100;
 }
 
 static void
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to