diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-05-23 16:05:41 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-05-24 15:25:53 -0700 |
| commit | 6f629657feeb5cfa05c17557870b5c32bdc3aec8 (patch) | |
| tree | f72af4b29e2174a198a9cbda08be441e63099c31 /ofproto | |
| parent | da37ebac7ab40ad6f9fe78ff1d218c43957f69e8 (diff) | |
| download | openvswitch-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.c | 2 |
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)) { |
