diff options
author | Ben Pfaff <blp@nicira.com> | 2013-10-22 21:36:22 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-10-23 08:37:31 -0700 |
commit | ee1afdd55567263f8a10f9bff3e5ae6fc8e42fdb (patch) | |
tree | 09e644d3671302a20bf8154c12676f5620f5615a /ofproto/ofproto-dpif.c | |
parent | d4fa4e792e55c60142f86a82822132ac584559ce (diff) |
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 <blp@nicira.com>
Diffstat (limited to 'ofproto/ofproto-dpif.c')
-rw-r--r-- | ofproto/ofproto-dpif.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |