summaryrefslogtreecommitdiff
path: root/include/openvswitch
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-01-26 09:24:59 -0800
committerBen Pfaff <blp@nicira.com>2011-01-27 21:08:38 -0800
commit996c1b3d7a4d6e82e1831ff8821e5fd7e1a5522c (patch)
treec4a7b6db50ce611b2db9bdf38eaa7241f43c21b5 /include/openvswitch
parent1ba530f4b2cd5476a224dbbf87a3089a831a24b6 (diff)
downloadopenvswitch-996c1b3d7a4d6e82e1831ff8821e5fd7e1a5522c.tar.gz
datapath: Drop port information from odp_stats.
As with n_flows, n_ports was used regularly by userspace to determine how much memory to allocate when listing ports, but it is no longer needed for that. max_ports, on the other hand, is necessary but it is also a fixed value for the kernel datapath right now and if we expand it we can also come up with a way to report the expanded value. The remaining members of odp_stats are actually real statistics that I intend to keep. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/openvswitch')
-rw-r--r--include/openvswitch/datapath-protocol.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h
index d744b9f4d..ec089bfe2 100644
--- a/include/openvswitch/datapath-protocol.h
+++ b/include/openvswitch/datapath-protocol.h
@@ -100,11 +100,6 @@
#define ODP_GET_SFLOW_PROBABILITY _IOW('O', 20, int)
struct odp_stats {
- /* Ports. */
- uint32_t n_ports; /* Current number of ports. */
- uint32_t max_ports; /* Maximum supported number of ports. */
-
- /* Lookups. */
uint64_t n_frags; /* Number of dropped IP fragments. */
uint64_t n_hit; /* Number of flow table matches. */
uint64_t n_missed; /* Number of flow table misses. */