I noticed that perfquery wasn't working and tracked it down to
madrpc_init() using the wrong rmpp version.
This patch fixes the problem.

Signed-off-by: Ralph Campbell <[EMAIL PROTECTED]>

Index: src/userspace/management/libibmad/src/rpc.c
===================================================================
--- src/userspace/management/libibmad/src/rpc.c (revision 6885)
+++ src/userspace/management/libibmad/src/rpc.c (working copy)
@@ -269,8 +269,6 @@
 void
 madrpc_init(char *dev_name, int dev_port, int *mgmt_classes, int num_classes)
 {
-       int rmpp_version = 0;
-
        if (umad_init() < 0)
                IBPANIC("can't init UMAD library");
 
@@ -278,6 +276,7 @@
                IBPANIC("can't open UMAD port (%s:%d)", dev_name, dev_port);
 
        while (num_classes--) {
+               int rmpp_version = 0;
                int mgmt = *mgmt_classes++;
 
                if (mgmt == IB_SA_CLASS)

-- 
Ralph Campbell <[EMAIL PROTECTED]>

_______________________________________________
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