diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2014-11-10 13:14:29 -0800 |
---|---|---|
committer | Jarno Rajahalme <jrajahalme@nicira.com> | 2014-11-10 13:14:29 -0800 |
commit | d8227ebab974e6ce0831e78ed93a959cc4a4fef2 (patch) | |
tree | eb7a0d3528f38f784e8255c23d8fd485383268a6 /ofproto/ofproto-dpif.h | |
parent | 975910f22481d58bf531ba7b4ace93fa9431eca3 (diff) | |
download | openvswitch-d8227ebab974e6ce0831e78ed93a959cc4a4fef2.tar.gz |
rule_dpif_lookup_from_table: Check frags only once.
Move the frags handling check up in the call chain, so that it is done
once for each rule_dpif_lookup_from_table() call.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/ofproto-dpif.h')
-rw-r--r-- | ofproto/ofproto-dpif.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ofproto/ofproto-dpif.h b/ofproto/ofproto-dpif.h index a8c5d48c1..24d509d67 100644 --- a/ofproto/ofproto-dpif.h +++ b/ofproto/ofproto-dpif.h @@ -92,14 +92,10 @@ uint8_t rule_dpif_lookup(struct ofproto_dpif *, struct flow *, struct flow_wildcards *, struct rule_dpif **rule, bool take_ref, const struct dpif_flow_stats *); -enum rule_dpif_lookup_verdict rule_dpif_lookup_from_table(struct ofproto_dpif *, - const struct flow *, - struct flow_wildcards *, - bool force_controller_on_miss, - uint8_t *table_id, - struct rule_dpif **rule, - bool take_ref, - const struct dpif_flow_stats *); +enum rule_dpif_lookup_verdict rule_dpif_lookup_from_table( + struct ofproto_dpif *, struct flow *, struct flow_wildcards *, + bool force_controller_on_miss, uint8_t *table_id, struct rule_dpif **rule, + bool take_ref, const struct dpif_flow_stats *); static inline void rule_dpif_ref(struct rule_dpif *); static inline void rule_dpif_unref(struct rule_dpif *); |