summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-05-23 16:05:41 -0700
committerEthan Jackson <ethan@nicira.com>2011-05-24 15:25:53 -0700
commit6f629657feeb5cfa05c17557870b5c32bdc3aec8 (patch)
treef72af4b29e2174a198a9cbda08be441e63099c31 /ofproto
parentda37ebac7ab40ad6f9fe78ff1d218c43957f69e8 (diff)
downloadopenvswitch-6f629657feeb5cfa05c17557870b5c32bdc3aec8.tar.gz
cfm: Require 'name' field for 'cfm' objects.
This commit also fixes a memory leak upon cfm_destroy() and converts the 'all_cfms' list to a hash map.
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index d41c584ea..2f8d404b2 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -744,7 +744,7 @@ set_cfm(struct ofport *ofport_, const struct cfm_settings *s)
error = 0;
} else {
if (!ofport->cfm) {
- ofport->cfm = cfm_create();
+ ofport->cfm = cfm_create(netdev_get_name(ofport->up.netdev));
}
if (cfm_configure(ofport->cfm, s)) {