secchan: Use classifier_for_each() instead of secchan_for_each_with_wildcards().
authorBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 00:54:42 +0000 (16:54 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 00:54:42 +0000 (16:54 -0800)
The classifier_for_each() function now provides what we actually needed
from secchan_for_each_with_wildcards(), and the interface is more sensible
to boot.

secchan/ofproto.c

index 5626f2e14ec98e7ba00402074a779858ac28baf6..38ced4cf1bfbf15662af26ebac44c6e83adf95f4 100644 (file)
@@ -1501,8 +1501,7 @@ handle_table_stats_request(struct ofproto *p, struct ofconn *ofconn,
 
     /* Count rules of various kinds. */
     n_subrules = 0;
-    classifier_for_each_with_wildcards(&p->cls, 0,
-                                       count_subrules, &n_subrules);
+    classifier_for_each(&p->cls, CLS_INC_EXACT, count_subrules, &n_subrules);
     n_exact = classifier_count_exact(&p->cls) - n_subrules;
     n_wild = classifier_count(&p->cls) - classifier_count_exact(&p->cls);