wdp: Get rid of most members of struct wdp_stats.
authorBen Pfaff <blp@nicira.com>
Tue, 29 Jun 2010 23:12:48 +0000 (16:12 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 29 Jun 2010 23:14:22 +0000 (16:14 -0700)
The wdp_stats structure is really a relic from the "master" branch.  Many
of its members do not make sense in a switch that might have an arbitrary
number of tables.  Only one member of this structure is currently used,
so this commit gets rid of the rest.

ofproto/wdp.h

index f2dddc3..2ba5839 100644 (file)
@@ -48,20 +48,7 @@ struct wdp_table_stats {
 };
 
 struct wdp_stats {
-    struct wdp_table_stats exact;
-    struct wdp_table_stats wild;
-
-    /* Ports. */
-    unsigned int n_ports;       /* Current number of ports. */
     unsigned int max_ports;     /* Maximum supported number of ports. */
-
-    /* Lookups. */
-    unsigned long long int n_frags;  /* Number of dropped IP fragments. */
-
-    /* Queues. */
-    unsigned int max_miss_queue;   /* Max length of WDP_CHAN_MISS queue. */
-    unsigned int max_action_queue; /* Max length of WDP_CHAN_ACTION queue. */
-    unsigned int max_sflow_queue;  /* Max length of WDP_CHAN_SFLOW queue. */
 };
 
 struct wdp_rule {