X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-dpif.h;h=14a96693b2d0a1065fe0ba06651be8d382c082e0;hb=a2143702724647df8a9aef570982738dd3721af0;hp=befd45863d0df8e0f08c00b06f3b8db84f2bbc2a;hpb=6f00e29b8b3f6996eceffc57b47bf707589d8335;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-dpif.h b/ofproto/ofproto-dpif.h index befd45863..14a96693b 100644 --- a/ofproto/ofproto-dpif.h +++ b/ofproto/ofproto-dpif.h @@ -61,15 +61,14 @@ struct OVS_LOCKABLE rule_dpif; * actions into datapath actions. */ void rule_dpif_lookup(struct ofproto_dpif *, const struct flow *, - struct flow_wildcards *, struct rule_dpif **rule) - OVS_ACQ_RDLOCK(*rule); + struct flow_wildcards *, struct rule_dpif **rule); bool rule_dpif_lookup_in_table(struct ofproto_dpif *, const struct flow *, struct flow_wildcards *, uint8_t table_id, - struct rule_dpif **rule) - OVS_TRY_RDLOCK(true, *rule); + struct rule_dpif **rule); -void rule_dpif_release(struct rule_dpif *rule) OVS_RELEASES(rule); +void rule_dpif_ref(struct rule_dpif *); +void rule_dpif_unref(struct rule_dpif *); void rule_dpif_credit_stats(struct rule_dpif *rule , const struct dpif_flow_stats *); @@ -86,8 +85,7 @@ void rule_dpif_reduce_timeouts(struct rule_dpif *rule, uint16_t idle_timeout, void choose_miss_rule(enum ofputil_port_config, struct rule_dpif *miss_rule, struct rule_dpif *no_packet_in_rule, - struct rule_dpif **rule) - OVS_ACQ_RDLOCK(*rule); + struct rule_dpif **rule); bool ofproto_has_vlan_splinters(const struct ofproto_dpif *); ofp_port_t vsp_realdev_to_vlandev(const struct ofproto_dpif *,