[ofw] [patch][ulp/libibmad] adjust the enumeration to fit the one in Fields.c

Irena Kruchkovsky irena at mellanox.co.il
Tue Aug 24 07:10:36 PDT 2010


The patch fixes a bug in the sminfo tool by adjusting the enumeration to fit the one in Fields.c

Index: D:/Windows/MLNX_VPI_2_1_2/ulp/libibmad/include/infiniband/mad.h
===================================================================
--- D:/Windows/MLNX_VPI_2_1_2/ulp/libibmad/include/infiniband/mad.h        (revision 6303)
+++ D:/Windows/MLNX_VPI_2_1_2/ulp/libibmad/include/infiniband/mad.h     (revision 6304)
@@ -407,7 +407,7 @@
                IB_SW_FILTER_RAW_OUTB_F,
                IB_SW_ENHANCED_PORT0_F,
                IB_SW_MCAST_FDB_TOP_F,
-              IB_SW_LAST_F,
+             IB_SW_LAST_F = IB_SW_MCAST_FDB_TOP_F,

                /*
                 * SwitchLinearForwardingTable fields

Example:

The output according to the previous enumeration:
sminfo: sm lid 1 sm guid 0x0, activity count 0 priority 3 state 0 SMINFO_NOTACT

The current output:
sminfo: sm lid 1 sm guid 0x2c903000560de, activity count 11163 priority 0 state 3 SMINFO_MASTER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100824/4a9912f9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mad_enum.patch
Type: application/octet-stream
Size: 513 bytes
Desc: mad_enum.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100824/4a9912f9/attachment.obj>


More information about the ofw mailing list