[openib-general] [PATCH] mad: In handle_outgoing_smp, remove unneeded call to smi_handle_dr_recv
Hal Rosenstock
halr at voltaire.com
Tue Nov 16 06:12:28 PST 2004
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
More information about the general
mailing list