ovs-dpctl: Show number of flows
authorSimon Horman <horms@verge.net.au>
Wed, 3 Aug 2011 23:04:10 +0000 (08:04 +0900)
committerJesse Gross <jesse@nicira.com>
Thu, 4 Aug 2011 04:38:03 +0000 (21:38 -0700)
commitf180c2e2ccdfc36801685dc487748b570652da68
tree3fa4fbabe71a75eb667c549277e5588c74b7e681
parent6da1e8091eb2e19de7ba5e0c73ac3e7dd437743d
ovs-dpctl: Show number of flows

Expose the number of flows present in a datapath to user-space
and to users via ovs-dpctl show.

e.g.:

ovs-dpctl show br3
system@br3:
lookups: frags:0, hit:0, missed:0, lost:0
flows: 0
...

Signed-off-by: Simon Horman <horms@verge.net.au>
[Jesse: Add same logic to userspace datapath.]
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
include/openvswitch/datapath-protocol.h
lib/dpif-netdev.c
utilities/ovs-dpctl.c