[openib-general] Re: [PATCH] rdma_krping test tool

Steve Wise swise at aoot.com
Wed Mar 15 16:10:24 PST 2006


On Wed, 2006-03-15 at 15:26 -0800, Sean Hefty wrote:
> Steve Wise wrote:
> > If you think this has utility, then please add it to
> > gen2/utils/src/linux-kernel/infiniband/util/krping.
> 
> I've added this to the util directory as a test.  Thanks!
> 
> 

Cool!  

Here's a patch that fixes a bug if the connection is rejected, plus a
printk typo.

Signed-off-by: Steve Wise <swise at opengridcomputing.com>


Index: krping.c
===================================================================
--- krping.c    (revision 5853)
+++ krping.c    (working copy)
@@ -241,6 +241,7 @@
        case RDMA_CM_EVENT_REJECTED:
                printk(KERN_ERR PFX "cma event %d, error %d\n", event->event,
                       event->status);
+               cb->state = ERROR;
                wake_up_interruptible(&cb->sem);
                break;

@@ -860,7 +861,7 @@
                return -1;
        }

-       DEBUG_LOG("rmda_connect successful\n");
+       DEBUG_LOG("rdma_connect successful\n");
        return 0;
 }





More information about the general mailing list