* [PATCH opensm] osm_ucast_mgr.c: Use LFT block of all port 0s to indicate resend
@ 2014-02-12 19:20 Hal Rosenstock
0 siblings, 0 replies; only message in thread
From: Hal Rosenstock @ 2014-02-12 19:20 UTC (permalink / raw)
To: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
In set_lft_block, use LFT block set to port 0 rather than invalid port
as a better way to detect that resending the LFT block is needed.
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
--
diff --git a/opensm/osm_ucast_mgr.c b/opensm/osm_ucast_mgr.c
index c8a7360..2329ea6 100644
--- a/opensm/osm_ucast_mgr.c
+++ b/opensm/osm_ucast_mgr.c
@@ -1006,7 +1006,7 @@ static int set_lft_block(IN osm_switch_t *p_sw, IN osm_ucast_mgr_t *p_mgr,
* Zero the stored LFT block, so in case the MAD will end up
* with error, we will resend it in the next sweep.
*/
- memset(p_sw->lft + block_id_ho * IB_SMP_DATA_SIZE, OSM_NO_PATH,
+ memset(p_sw->lft + block_id_ho * IB_SMP_DATA_SIZE, 0,
IB_SMP_DATA_SIZE);
OSM_LOG(p_mgr->p_log, OSM_LOG_DEBUG,
--
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] only message in thread
only message in thread, other threads:[~2014-02-12 19:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-12 19:20 [PATCH opensm] osm_ucast_mgr.c: Use LFT block of all port 0s to indicate resend Hal Rosenstock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.