[ofa-general] Patch for libvendor incompatibility with QLogic SM

Mike Heinz michael.heinz at qlogic.com
Thu Dec 18 11:18:03 PST 2008


Sets the num_path attribute of the path record for path queries, to comply with the IBTA spec while supporting the opensm extended functionality.


Signed-off-by: mheinz at qlogic.com (Michael Heinz)
--------------------------------
--- osm_vendor_ibumad_sa.c.orig	2008-10-20 01:00:09.000000000 -0400
+++ osm_vendor_ibumad_sa.c	2008-12-18 14:13:05.000000000 -0500
@@ -615,7 +615,8 @@
 		sa_mad_data.attr_offset =
 		    ib_get_attr_offset(sizeof(ib_path_rec_t));
 		sa_mad_data.comp_mask =
-		    (IB_PR_COMPMASK_DGID | IB_PR_COMPMASK_SGID);
+		    (IB_PR_COMPMASK_DGID | IB_PR_COMPMASK_SGID | IB_PR_COMPMASK_NUMBPATH);
+		path_rec.num_path = 0x7f;
 		sa_mad_data.p_attr = &path_rec;
 		ib_gid_set_default(&path_rec.dgid,
 				   ((osmv_guid_pair_t *) (p_query_req->
@@ -634,7 +635,8 @@
 		sa_mad_data.attr_offset =
 		    ib_get_attr_offset(sizeof(ib_path_rec_t));
 		sa_mad_data.comp_mask =
-		    (IB_PR_COMPMASK_DGID | IB_PR_COMPMASK_SGID);
+		    (IB_PR_COMPMASK_DGID | IB_PR_COMPMASK_SGID | IB_PR_COMPMASK_NUMBPATH);
+		path_rec.num_path = 0x7f;
 		sa_mad_data.p_attr = &path_rec;
 		memcpy(&path_rec.dgid,
 		       &((osmv_gid_pair_t *) (p_query_req->p_query_input))->
@@ -652,7 +654,8 @@
 		sa_mad_data.attr_offset =
 		    ib_get_attr_offset(sizeof(ib_path_rec_t));
 		sa_mad_data.comp_mask =
-		    (IB_PR_COMPMASK_DLID | IB_PR_COMPMASK_SLID);
+		    (IB_PR_COMPMASK_DLID | IB_PR_COMPMASK_SLID | IB_PR_COMPMASK_NUMBPATH);
+		path_rec.num_path = 0x7f;
 		sa_mad_data.p_attr = &path_rec;
 		path_rec.dlid =
 		    ((osmv_lid_pair_t *) (p_query_req->p_query_input))->
--
Michael Heinz
Principal Engineer, Qlogic Corporation
King of Prussia, Pennsylvania
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvendor.patchfile
Type: application/octet-stream
Size: 1343 bytes
Desc: libvendor.patchfile
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20081218/204e1de2/attachment.obj>


More information about the general mailing list