From ee1afdd55567263f8a10f9bff3e5ae6fc8e42fdb Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 22 Oct 2013 21:36:22 -0700 Subject: fail-open: Add function to identify fail-open's flows. This seems slightly cleaner than embedding this logic directing into ofproto-dpif, since it is an interface that theoretically could be useful to other ofproto providers. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ofproto/ofproto-dpif.c') diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index f53384d6..67c21f54 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -4304,9 +4304,10 @@ rule_dpif_credit_stats(struct rule_dpif *rule, } bool -rule_dpif_fail_open(const struct rule_dpif *rule) +rule_dpif_is_fail_open(const struct rule_dpif *rule) { - return rule->up.cr.priority == FAIL_OPEN_PRIORITY; + return is_fail_open_rule(&rule->up); +} } ovs_be64 -- cgit v1.2.3