From f180c2e2ccdfc36801685dc487748b570652da68 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Thu, 4 Aug 2011 08:04:10 +0900 Subject: 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 [Jesse: Add same logic to userspace datapath.] Signed-off-by: Jesse Gross --- include/openvswitch/datapath-protocol.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h index 0b755e8ff..426236cd5 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. */ -- cgit v1.2.1