mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
datapath: Drop flow information from odp_stats.
Userspace used to use the n_flows information here to decide how much memory needed to be allocated to list flows, but that isn't necessary any longer now that listing flows uses an iterator abstraction. The cur_capacity and max_capacity members are just curiosities and don't provide much information; if the implementation ever changes away from the current hash table implementation then they could become meaningless anyhow. But more than anything, these aren't really the kind of statistics that networking people usually care about. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
@@ -297,9 +297,6 @@ dpif_netdev_get_stats(const struct dpif *dpif, struct odp_stats *stats)
|
||||
{
|
||||
struct dp_netdev *dp = get_dp_netdev(dpif);
|
||||
memset(stats, 0, sizeof *stats);
|
||||
stats->n_flows = hmap_count(&dp->flow_table);
|
||||
stats->cur_capacity = hmap_capacity(&dp->flow_table);
|
||||
stats->max_capacity = MAX_FLOWS;
|
||||
stats->n_ports = dp->n_ports;
|
||||
stats->max_ports = MAX_PORTS;
|
||||
stats->n_frags = dp->n_frags;
|
||||
|
Reference in New Issue
Block a user