osm_vendor_ibumad.c: In osm_vendor_bind, only register GetTable and
Delete methods for SA class
Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>
Index: osm_vendor_ibumad.c
===================================================================
--- osm_vendor_ibumad.c (revision 3195)
+++ osm_vendor_ibumad.c (working copy)
@@ -718,11 +718,12 @@
if (p_user_bind->is_responder) {
set_bit(IB_MAD_METHOD_GET, &method_mask);
set_bit(IB_MAD_METHOD_SET, &method_mask);
- set_bit(IB_MAD_METHOD_GETTABLE, &method_mask);
- set_bit(IB_MAD_METHOD_DELETE, &method_mask);
- /* Add in IB_MAD_METHOD_GETTRACETABLE */
- /* and IB_MAD_METHOD_GETMULTI when */
- /* supported by OpenSM */
+ if (p_user_bind->mad_class == IB_MCLASS_SUBN_ADM) {
+ set_bit(IB_MAD_METHOD_GETTABLE, &method_mask);
+ set_bit(IB_MAD_METHOD_DELETE, &method_mask);
+ /* Add in IB_MAD_METHOD_GETTRACETABLE and */
+ /* IB_MAD_METHOD_GETMULTI when supported by OpenSM */
+ }
}
if (p_user_bind->is_report_processor)
set_bit(IB_MAD_METHOD_REPORT, &method_mask);
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general