X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vswitchd%2Fbridge.c;h=1d60326fe31991495d1c72b7cd1fde2a89707d1e;hb=6567010fff1a07100db5853416de0fe5ccd9e99d;hp=e337ab5ac166053f266334d3a275156df40a6be7;hpb=a6b7506dab305d91fc5f2ac6416a714e5fa09dd4;p=sliver-openvswitch.git diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index e337ab5ac..1d60326fe 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -496,7 +496,7 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg) smap_get_int(&ovs_cfg->other_config, "flow-eviction-threshold", OFPROTO_FLOW_EVICTION_THRESHOLD_DEFAULT)); - ofproto_set_n_handler_threads( + ofproto_set_threads( smap_get_int(&ovs_cfg->other_config, "n-handler-threads", 0)); bridge_configure_flow_miss_model(smap_get(&ovs_cfg->other_config, @@ -2453,6 +2453,15 @@ void bridge_get_memory_usage(struct simap *usage) { struct bridge *br; + struct sset types; + const char *type; + + sset_init(&types); + ofproto_enumerate_types(&types); + SSET_FOR_EACH (type, &types) { + ofproto_type_get_memory_usage(type, usage); + } + sset_destroy(&types); HMAP_FOR_EACH (br, node, &all_bridges) { ofproto_get_memory_usage(br->ofproto, usage);