[openib-general] [PATCH] mad.c::ib_register_mad_agent: Fix RMPP version check during agent registration
Hal Rosenstock
halr at voltaire.com
Wed Apr 12 18:29:10 PDT 2006
mad.c::ib_register_mad_agent: Fix RMPP version check during agent
registration
Only check that RMPP version is not specified when MAD class does not
support RMPP
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
--
Roland,
Can you push this fix upstream ? Thanks.
Index: mad.c
===================================================================
-- mad.c (revision 6445)
+++ mad.c (working copy)
@@ -228,10 +228,7 @@ struct ib_mad_agent *ib_register_mad_age
goto error1;
}
/* Make sure class supplied is consistent with RMPP */
- if (ib_is_mad_class_rmpp(mad_reg_req->mgmt_class)) {
- if (!rmpp_version)
- goto error1;
- } else {
+ if (!ib_is_mad_class_rmpp(mad_reg_req->mgmt_class)) {
if (rmpp_version)
goto error1;
}
More information about the general
mailing list