[openib-general] [PATCH] OpenSM/osm_sa_mcmember_record.c::__osm_mcmr_rcv_respond: Fix MTU, rate, and PLL selectors

Hal Rosenstock halr at voltaire.com
Fri Apr 14 07:49:18 PDT 2006


OpenSM/osm_sa_mcmember_record.c::__osm_mcmr_rcv_respond: Fix MTU, rate,
and PLL selectors to be exactly

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

---
Note this patch has been applied to both trunk and 1.0 branch.

Index: opensm/osm_sa_mcmember_record.c
===================================================================
--- opensm/osm_sa_mcmember_record.c	(revision 6466)
+++ opensm/osm_sa_mcmember_record.c	(working copy)
@@ -548,8 +548,11 @@ __osm_mcmr_rcv_respond(
   *p_resp_mcmember_rec = *p_mcmember_rec;
 
   /* Fill in the mtu, rate, and packet lifetime selectors */
+  p_resp_mcmember_rec->mtu &= 0x3f;
   p_resp_mcmember_rec->mtu |= 2<<6; /* exactly */
+  p_resp_mcmember_rec->rate &= 0x3f;
   p_resp_mcmember_rec->rate |=  2<<6; /* exactly */
+  p_resp_mcmember_rec->pkt_life &= 0x3f;
   p_resp_mcmember_rec->pkt_life |= 2<<6; /* exactly */
 
   status = osm_vendor_send(






More information about the general mailing list