opensm/osm_qos.c: Eliminate unneeded endport SL to VL setup
PATCH 1/1 opensm/osm_qos.c: Eliminate unneeded endport SL to VL setup
when using optimized programming and it's supported by the switch
---
opensm/opensm/osm_qos.c +6 -0
@@ -305,6 +305,12 @@ int osm_qos_setup(osm_opensm_t * p_osm) (&p_node->sw->switch_info))continue ; +if (ib_switch_info_get_opt_sl2vlmapping (&p_node->sw->switch_info) && + p_osm->sm.p_subn->opt.use_optimized_slvl && + !memcmp (&swe_config.sl2vl, &sw0_config.sl2vl, +sizeof (swe_config.sl2vl))) +continue ; + cfg = &sw0_config; }else if (osm_node_get_type (p_node) ==IB_NODE_TYPE_ROUTER ) cfg = &rtr_config;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Hal,
Quoted 10 lines · Hal Rosenstock
when using optimized programming and it's supported by the switch
Signed-off-by Hal Rosenstock <[email protected]>---
opensm/opensm/osm_qos.c +0
-0
opensm/opensm/osm_qos.c int osm_qos_setup(osm_opensm_t * p_osm) · line 313
Quoted 9 lines
opensm/opensm/osm_qos.c +6
-0@@ -305,6 +305,12 @@ int osm_qos_setup(osm_opensm_t * p_osm) (&p_node->sw->switch_info))continue ; +if (ib_switch_info_get_opt_sl2vlmapping (&p_node->sw->switch_info) && + p_osm->sm.p_subn->opt.use_optimized_slvl && + !memcmp (&swe_config.sl2vl, &sw0_config.sl2vl, +sizeof (swe_config.sl2vl))) +continue ; +
But then exports sl2vl tables setup loop should be changed starting from port '0' (not '1'), right?
Sasha
opensm/opensm/osm_qos.c int osm_qos_setup(osm_opensm_t * p_osm) · line 316
Quoted 4 lines
opensm/opensm/osm_qos.c +0
-0cfg = &sw0_config; }else if (osm_node_get_type (p_node) ==IB_NODE_TYPE_ROUTER ) cfg = &rtr_config;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Sasha,
Quoted 16 lines · Sasha Khapyorsky
Hi Hal,
Quoted 13 lines · Hal Rosenstock
when using optimized programming and it's supported by the switch
Signed-off-by Hal Rosenstock <[email protected]>---
opensm/opensm/osm_qos.c +0
-0@@ -305,6 +305,12 @@ int osm_qos_setup(osm_opensm_t * p_osm) (&p_node->sw->switch_info)) continue;
Quoted 9 lines
opensm/opensm/osm_qos.c int osm_qos_setup(osm_opensm_t * p_osm) · line 313
Quoted 6 lines
opensm/opensm/osm_qos.c +6
-0+ if (ib_switch_info_get_opt_sl2vlmapping(&p_node->sw->switch_info) && + p_osm->sm.p_subn->opt.use_optimized_slvl && + !memcmp(&swe_config.sl2vl, &sw0_config.sl2vl, + sizeof(swe_config.sl2vl))) + continue; +But then exports sl2vl tables setup loop should be changed starting from port '0' (not '1'), right?
Isn't it just that vlarb needs to be pushed for port 0 in that case (and not the sl2vl) ? Patch to follow.
-- Hal
Quoted 11 lines
Sasha
opensm/opensm/osm_qos.c int osm_qos_setup(osm_opensm_t * p_osm) · line 316
Quoted 4 lines
opensm/opensm/osm_qos.c +0
-0cfg = &sw0_config; } else if (osm_node_get_type(p_node) == IB_NODE_TYPE_ROUTER) cfg = &rtr_config;--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html