mad: In handle_outgoing_smp, remove unneeded call to smi_handle_dr_recv
There is no need to check the DR validity on a MAD which has been processed 
locally

Index: mad.c
===================================================================
--- mad.c       (revision 1244)
+++ mad.c       (working copy)
@@ -410,17 +410,6 @@
                                        goto error1;
                                }
                                if (ret & IB_MAD_RESULT_REPLY) {
-                                       if (!smi_handle_dr_smp_recv(
-                                           (struct ib_smp *)&mad_priv->mad,
-                                           mad_agent->device->node_type,
-                                           mad_agent->port_num,
-                                           mad_agent->device->phys_port_cnt)) {
-                                               ret = -EINVAL;
-                                               kmem_cache_free(ib_mad_cache,
-                                                               mad_priv);
-                                               goto error1;
-                                       }
-
                                        /*
                                         * See if response is solicited and
                                         * there is a recv handler



_______________________________________________
openib-general mailing list
[EMAIL PROTECTED]
http://openib.org/mailman/listinfo/openib-general

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

Reply via email to