[ovs-dev] [patch_ports 2/4] ofproto-dpif: Refresh stats before ovs-appctl dpif/dump-flows.
Ethan Jackson
ethan at nicira.com
Tue Jan 15 03:50:15 UTC 2013
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 <ethan at 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 f466f6a..dc1a023 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -7588,6 +7588,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
More information about the dev
mailing list