opensm/osm_sa_slvl_record.c: Fix out port for CAs and routers
PATCH 1/1 opensm/osm_sa_slvl_record.c: Fix out port for CAs and routers
Also, no need to set in port there as already 0 due to memset
---
opensm/osm_sa_slvl_record.c +4 -2
@@ -103,8 +103,10 @@ static void sa_slvl_create(IN osm_sa_t * sa, IN const osm_physp_t * p_physp,memset (p_rec_item,0 ,sizeof (*p_rec_item)); p_rec_item->rec.lid = lid; - p_rec_item->rec.out_port_num =osm_physp_get_port_num (p_physp); - p_rec_item->rec.in_port_num = in_port_idx; +if (p_physp->p_node->node_info.node_type ==IB_NODE_TYPE_SWITCH ) { + p_rec_item->rec.out_port_num =osm_physp_get_port_num (p_physp); + p_rec_item->rec.in_port_num = in_port_idx; + } p_rec_item->rec.slvl_tbl = *(osm_physp_get_slvl_tbl (p_physp, in_port_idx));
--
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): 50CF4E7F.6040305-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org
Hi Hal,
Quoted 5 lines · Hal Rosenstock
Also, no need to set in port there as already 0 due to memset
---
Applied, thanks.
--
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