From 7ec3ff80d36c187cea135484e11000377b43b784 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 4 Mar 2009 16:54:42 -0800 Subject: [PATCH] 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. --- secchan/ofproto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.30.2