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: [email protected] (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

Attachment: libvendor.patchfile
Description: libvendor.patchfile

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to