[openib-general] [PATCH] ib_smi: In smi_handle_dr_smp_send, fix C14-13:3 handling

Hal Rosenstock halr at voltaire.com
Tue Oct 12 07:20:45 PDT 2004


ib_smi: In smi_handle_dr_smp_send, fix C14-13:3 handling

Index: ib_smi.c
===================================================================
--- ib_smi.c    (revision 972)
+++ ib_smi.c    (working copy)
@@ -103,8 +103,8 @@
                if (hop_ptr == 1) {
                        smp->hop_ptr--;
                        /* C14-13:3 -- SMPs destined for SM shouldn't be
here */-                       return (mad_agent->device->node_type ==
IB_NODE_SWITCH &&
-                               smp->dr_slid != IB_LID_PERMISSIVE);
+                       return (mad_agent->device->node_type ==
IB_NODE_SWITCH ||
+                               smp->dr_slid == IB_LID_PERMISSIVE);
                }
  
                /* C14-13:4 -- hop_ptr = 0 -> should have gone to SM. */





More information about the general mailing list