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 <et...@nicira.com> --- ofproto/ofproto-dpif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index ff342a0..5c5d261 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -7634,6 +7634,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; -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev