* [PATCH] opensm/osm_sa_slvl_record.c: Fix out port for CAs and routers
@ 2012-12-17 16:55 Hal Rosenstock
[not found] ` <50CF4E7F.6040305-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2012-12-17 16:55 UTC (permalink / raw)
To: Alex Netes
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
Also, no need to set in port there as already 0 due to memset
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/opensm/osm_sa_slvl_record.c b/opensm/osm_sa_slvl_record.c
index 8f6d7b8..12c87f7 100644
--- a/opensm/osm_sa_slvl_record.c
+++ b/opensm/osm_sa_slvl_record.c
@@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] opensm/osm_sa_slvl_record.c: Fix out port for CAs and routers
[not found] ` <50CF4E7F.6040305-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2013-01-30 17:47 ` Alex Netes
0 siblings, 0 replies; 2+ messages in thread
From: Alex Netes @ 2013-01-30 17:47 UTC (permalink / raw)
To: Hal Rosenstock
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
Hi Hal,
On 11:55 Mon 17 Dec , Hal Rosenstock wrote:
>
> Also, no need to set in port there as already 0 due to memset
>
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-30 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-17 16:55 [PATCH] opensm/osm_sa_slvl_record.c: Fix out port for CAs and routers Hal Rosenstock
[not found] ` <50CF4E7F.6040305-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-01-30 17:47 ` Alex Netes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).