[openib-general] [PATCH] OpenSM/osm_sa_sminfo_record.c: In osm_smir_rcv_process, send response as RMPP if request was GetTable

Hal Rosenstock halr at voltaire.com
Wed Jul 5 11:27:36 PDT 2006


OpenSM/osm_sa_sminfo_record.c: In osm_smir_rcv_process, send response as
RMPP if request was GetTable

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

Index: opensm/osm_sa_sminfo_record.c
===================================================================
--- opensm/osm_sa_sminfo_record.c	(revision 8392)
+++ opensm/osm_sa_sminfo_record.c	(working copy)
@@ -224,10 +224,15 @@ osm_smir_rcv_process(
 
   /*  Copy the MAD header back into the response mad */
   memcpy( p_resp_sa_mad, p_sa_mad, IB_SA_MAD_HDR_SIZE );
+  if( p_resp_sa_mad->method == IB_MAD_METHOD_GETTABLE )
+  {
+    p_resp_sa_mad->rmpp_flags = IB_RMPP_FLAG_ACTIVE;
+    /* Fill in the offset (paylen will be done by the rmpp SAR) */
+    p_resp_sa_mad->attr_offset =
+      ib_get_attr_offset( sizeof(ib_sminfo_record_t) );
+  }
+
   p_resp_sa_mad->method |= IB_MAD_METHOD_RESP_MASK;
-  /* Fill in the offset (paylen will be done by the rmpp SAR) */
-  p_resp_sa_mad->attr_offset =
-    ib_get_attr_offset( sizeof(ib_sminfo_record_t) );
 
   /* C15-0.1.5 - always return SM_Key = 0 (table 185 p 884) */
   p_resp_sa_mad->sm_key = 0;







More information about the general mailing list