From: Ben Pfaff Date: Thu, 5 Mar 2009 00:54:42 +0000 (-0800) Subject: secchan: Use classifier_for_each() instead of secchan_for_each_with_wildcards(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ec3ff80d36c187cea135484e11000377b43b784;p=openvswitch secchan: Use classifier_for_each() instead of secchan_for_each_with_wildcards(). 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. --- diff --git a/secchan/ofproto.c b/secchan/ofproto.c index 5626f2e1..38ced4cf 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -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);