]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Refresh of xrc_sample
authorSean Hefty <sean.hefty@intel.com>
Thu, 27 Sep 2012 18:53:57 +0000 (11:53 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 27 Sep 2012 18:53:57 +0000 (11:53 -0700)
examples/xsrq_pingpong.c

index f133f2da2c6b254ff78fa5c748b289dd2555a85e..363ceaacec8a10bc03353eee92cafcaf6c6c947a 100644 (file)
@@ -284,7 +284,7 @@ static int pp_init_ctx(char *ib_devname)
        attr.xrcd = ctx.xrcd;
        attr.cq = ctx.recv_cq;
 
-       ctx.srq = ibv_create_srq_ex(ctx.pd, &attr);
+       ctx.srq = ibv_create_srq_ex(ctx.context, &attr);
        if (!ctx.srq)  {
                fprintf(stderr, "Couldn't create SRQ\n");
                return 1;