From af37354d92f45f1f276bb0bbf754b2851e29d14b Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Mon, 14 Jan 2013 18:02:27 -0800 Subject: [PATCH] ofproto-dpif: Refresh stats before ovs-appctl dpif/dump-flows. As a matter of convenience, this patch refreshes the statistics when ovs-appctl dpif/dump-flows is called. Hopefully this will prevent users from being confused because statistics they were expecting to see haven't made it from the datapath into the switch yet. Signed-off-by: Ethan Jackson --- ofproto/ofproto-dpif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index d1e4fafca..2f782671b 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -7636,6 +7636,8 @@ ofproto_unixctl_dpif_dump_flows(struct unixctl_conn *conn, return; } + update_stats(ofproto->backer); + HMAP_FOR_EACH (subfacet, hmap_node, &ofproto->subfacets) { struct odputil_keybuf keybuf; struct ofpbuf key; -- 2.43.0