git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-atomic: Introduce a new 'struct ovs_refcount'.
[sliver-openvswitch.git]
/
ofproto
/
ofproto-provider.h
diff --git
a/ofproto/ofproto-provider.h
b/ofproto/ofproto-provider.h
index
cc318ee
..
19d1551
100644
(file)
--- a/
ofproto/ofproto-provider.h
+++ b/
ofproto/ofproto-provider.h
@@
-346,7
+346,7
@@
struct rule {
* The classifier owns one reference.
* Any thread trying to keep a rule from being freed should hold its own
* reference. */
* The classifier owns one reference.
* Any thread trying to keep a rule from being freed should hold its own
* reference. */
-
atomic_ui
nt ref_count;
+
struct ovs_refcou
nt ref_count;
/* Operation now in progress, if nonnull. */
struct ofoperation *pending OVS_GUARDED_BY(ofproto_mutex);
/* Operation now in progress, if nonnull. */
struct ofoperation *pending OVS_GUARDED_BY(ofproto_mutex);
@@
-426,7
+426,7
@@
rule_is_table_miss(const struct rule *rule)
* 'rule' is the rule for which 'rule->actions == actions') or that owns a
* reference to 'actions->ref_count' (or both). */
struct rule_actions {
* 'rule' is the rule for which 'rule->actions == actions') or that owns a
* reference to 'actions->ref_count' (or both). */
struct rule_actions {
-
atomic_ui
nt ref_count;
+
struct ovs_refcou
nt ref_count;
/* These members are immutable: they do not change during the struct's
* lifetime. */
/* These members are immutable: they do not change during the struct's
* lifetime. */