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
ofproto-dpif-sflow: Reference count 'struct dpif_sflow'.
[sliver-openvswitch.git]
/
ofproto
/
ofproto-dpif.c
diff --git
a/ofproto/ofproto-dpif.c
b/ofproto/ofproto-dpif.c
index
d0e1b4c
..
afda80d
100644
(file)
--- a/
ofproto/ofproto-dpif.c
+++ b/
ofproto/ofproto-dpif.c
@@
-1195,7
+1195,7
@@
destruct(struct ofproto *ofproto_)
}
netflow_destroy(ofproto->netflow);
}
netflow_destroy(ofproto->netflow);
- dpif_sflow_
destroy
(ofproto->sflow);
+ dpif_sflow_
unref
(ofproto->sflow);
hmap_destroy(&ofproto->bundles);
mac_learning_unref(ofproto->ml);
hmap_destroy(&ofproto->bundles);
mac_learning_unref(ofproto->ml);
@@
-1617,7
+1617,7
@@
set_sflow(struct ofproto *ofproto_,
dpif_sflow_set_options(ds, sflow_options);
} else {
if (ds) {
dpif_sflow_set_options(ds, sflow_options);
} else {
if (ds) {
- dpif_sflow_
destroy
(ds);
+ dpif_sflow_
unref
(ds);
ofproto->backer->need_revalidate = REV_RECONFIGURE;
ofproto->sflow = NULL;
}
ofproto->backer->need_revalidate = REV_RECONFIGURE;
ofproto->sflow = NULL;
}