[ofw] FDR: opensm patches

Leonid Keller leonid at mellanox.co.il
Mon Sep 26 01:24:19 PDT 2011


Also - that.

======================================================
[OSMTEST] bugfix: Use proper defines for rate

commit dfeb3f6a9bbdfdb7dd18587d8fadc2710ed6c0bd
Author: Hal Rosenstock <hal at dev.mellanox.co.il>
Date:   Tue Jul 5 13:24:34 2011 -0400

    opensm/osmtest/osmt_multicast.c: Use proper defines for rate
=======================================================


Index: B:/users/leonid/svn/winib/branches/fdr/ulp/opensm/user/osmtest/osmt_multicast.c
===================================================================
--- B:/users/leonid/svn/winib/branches/fdr/ulp/opensm/user/osmtest/osmt_multicast.c          (revision 8758)
+++ B:/users/leonid/svn/winib/branches/fdr/ulp/opensm/user/osmtest/osmt_multicast.c       (revision 8759)
@@ -388,7 +388,7 @@
                /*  uint8_t     mtu; - keep it zero means - anything you have please. */
                /*  uint8_t     tclass; can leave as zero for now (between subnets) */
                /*  ib_net16_t  pkey; leave as zero */
-              p_mc_req->rate = IB_LINK_WIDTH_ACTIVE_4X;
+             p_mc_req->rate = IB_PATH_RECORD_RATE_2_5_GBS;
                /*  uint8_t     pkt_life; zero means greater than zero ... */
                /*  ib_net32_t  sl_flow_hop; keep it all zeros */
                /*  we want to use a link local scope: 0x02 */
@@ -889,7 +889,7 @@

                /* impossible requested rate */
                mc_req_rec.rate =
-                  IB_LINK_WIDTH_ACTIVE_12X | IB_PATH_SELECTOR_GREATER_THAN << 6;
+                 IB_PATH_RECORD_RATE_60_GBS | IB_PATH_SELECTOR_GREATER_THAN << 6;

                comp_mask = IB_MCR_COMPMASK_GID | IB_MCR_COMPMASK_PORT_GID | IB_MCR_COMPMASK_QKEY | IB_MCR_COMPMASK_PKEY | IB_MCR_COMPMASK_SL | IB_MCR_COMPMASK_FLOW | IB_MCR_COMPMASK_JOIN_STATE | IB_MCR_COMPMASK_TCLASS |   /* all above are required */
                    IB_MCR_COMPMASK_RATE_SEL | IB_MCR_COMPMASK_RATE;
@@ -1228,7 +1228,7 @@
                /* Good Flow - mgid is 0 while giving all required fields for join : P_Key, Q_Key, SL, FlowLabel, Tclass */

                mc_req_rec.rate =
-                  IB_LINK_WIDTH_ACTIVE_12X | IB_PATH_SELECTOR_LESS_THAN << 6;
+                 IB_PATH_RECORD_RATE_60_GBS | IB_PATH_SELECTOR_LESS_THAN << 6;

                comp_mask = IB_MCR_COMPMASK_MGID | IB_MCR_COMPMASK_PORT_GID | IB_MCR_COMPMASK_QKEY | IB_MCR_COMPMASK_PKEY | IB_MCR_COMPMASK_SL | IB_MCR_COMPMASK_FLOW | IB_MCR_COMPMASK_JOIN_STATE | IB_MCR_COMPMASK_TCLASS |   /* all above are required */
                    IB_MCR_COMPMASK_RATE_SEL | IB_MCR_COMPMASK_RATE;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20110926/577997ad/attachment.html>


More information about the ofw mailing list