[openib-general] [PATCH] osm_vendor_ibumad.c: osm_vendor_bind registration fix for other than SA class

Hal Rosenstock halr at voltaire.com
Thu Aug 25 16:49:13 PDT 2005


osm_vendor_ibumad.c: In osm_vendor_bind, only register GetTable and
Delete methods for SA class

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

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);






More information about the general mailing list