ovs-appctl: dpif/show display per bridge stats
authorAndy Zhou <azhou@nicira.com>
Tue, 12 Mar 2013 21:19:18 +0000 (14:19 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 13 Mar 2013 17:55:46 +0000 (10:55 -0700)
commit735d7efbaf03fd769d4716b7785fd81cc70f50d9
treeb12f5393615774627929d1665a7f70a297e7f19f
parent6802c96db8e73d0319c2634f069404edceff7d54
ovs-appctl: dpif/show display per bridge stats

This is to fix the fallout of single datapath change.
ovs-appctl dpif/show displays per bridge miss, hit
and flow counts on the screen, but the backend is
obtaining those information from the datapath.
With a single datapath, all bridges of the same
datapath would all display the same  (global)
counters maintained by the datapath, obviously
not correct.

This patch fixes the bug by maintaining per ofproto_dpif
miss and hit counts, which are used for display output.
The number of flows count is obtained by counting the
number facets per ofproto.

ovs-dpctl show still displays the counters maintain by
the datapath, as before.

Bug #15369

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
tests/ofproto-dpif.at
tests/tunnel.at