[openib-general] [PATCH] fix madrpc_init() to use correct rmpp version
Ralph Campbell
ralphc at pathscale.com
Wed May 3 13:34:33 PDT 2006
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 <ralph.campbell at qlogic.com>
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 <ralphc at pathscale.com>
More information about the general
mailing list