From: Ethan Jackson Date: Tue, 15 Jan 2013 02:02:27 +0000 (-0800) Subject: ofproto-dpif: Refresh stats before ovs-appctl dpif/dump-flows. X-Git-Tag: sliver-openvswitch-1.9.90-3~3^2~33 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=af37354d92f45f1f276bb0bbf754b2851e29d14b 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 --- 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;