osm_sw_info_rcv.c: Add check of switch mcast_cap
PATCH 1/1 osm_sw_info_rcv.c: Add check of switch mcast_cap
From: Ilya Nelkenbaum <ilyan-VPRAkNaXOzVWk0Htik3J/[email protected]>
--- opensm/osm_sw_info_rcv.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
opensm/osm_sw_info_rcv.c +2 -1
@@ -222,7 +222,8 @@ static void si_rcv_process_new(IN osm_sm_t * sm, IN osm_node_t * p_node, }/* set subnet max mlid to the minimum MulticastFDBCap of all switches */ -if (cl_ntoh16 (p_si->mcast_cap) +IB_LID_MCAST_START_HO -1 < +if (p_si->mcast_cap && +cl_ntoh16 (p_si->mcast_cap) +IB_LID_MCAST_START_HO -1 < sm->p_subn->max_mcast_lid_ho) { sm->p_subn->max_mcast_lid_ho =cl_ntoh16 (p_si->mcast_cap) +IB_LID_MCAST_START_HO -1 ;
Signature · 7 lines
1.7.8.2 -- 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