diff options
author | Simon Horman <horms@verge.net.au> | 2011-08-04 08:04:10 +0900 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2011-08-03 21:38:03 -0700 |
commit | f180c2e2ccdfc36801685dc487748b570652da68 (patch) | |
tree | 3fa4fbabe71a75eb667c549277e5588c74b7e681 /include/openvswitch | |
parent | 6da1e8091eb2e19de7ba5e0c73ac3e7dd437743d (diff) |
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>
Diffstat (limited to 'include/openvswitch')
-rw-r--r-- | include/openvswitch/datapath-protocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h index 0b755e8f..426236cd 100644 --- a/include/openvswitch/datapath-protocol.h +++ b/include/openvswitch/datapath-protocol.h @@ -133,6 +133,7 @@ struct odp_stats { uint64_t n_hit; /* Number of flow table matches. */ uint64_t n_missed; /* Number of flow table misses. */ uint64_t n_lost; /* Number of misses not sent to userspace. */ + uint64_t n_flows; /* Number of flows present */ }; /* Logical ports. */ |