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>
Mon, 1 Apr 2013 20:30:57 +0000 (13:30 -0700)
commitc2c5cca2aff3d4324a3d84b24107675b9be6301d
tree3575a273e488d8b417869ccbc74dee8502494450
parent37419873b42963ff9da99b7f47cbde39f20f6184
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