datapath: Drop queue information from odp_stats.
[sliver-openvswitch.git] / datapath / datapath.c
index ffa22e2..3cc3366 100644 (file)
@@ -1199,13 +1199,9 @@ static int execute_packet(struct datapath *dp, const struct odp_execute __user *
 
 static int get_dp_stats(struct datapath *dp, struct odp_stats __user *statsp)
 {
-       struct tbl *table = get_table_protected(dp);
        struct odp_stats stats;
        int i;
 
-       stats.n_flows = tbl_count(table);
-       stats.cur_capacity = tbl_n_buckets(table);
-       stats.max_capacity = TBL_MAX_BUCKETS;
        stats.n_ports = dp->n_ports;
        stats.max_ports = DP_MAX_PORTS;
        stats.n_frags = stats.n_hit = stats.n_missed = stats.n_lost = 0;
@@ -1226,8 +1222,6 @@ static int get_dp_stats(struct datapath *dp, struct odp_stats __user *statsp)
                stats.n_missed += local_stats.n_missed;
                stats.n_lost += local_stats.n_lost;
        }
-       stats.max_miss_queue = DP_MAX_QUEUE_LEN;
-       stats.max_action_queue = DP_MAX_QUEUE_LEN;
        return copy_to_user(statsp, &stats, sizeof(stats)) ? -EFAULT : 0;
 }