Skip to content

Commit

Permalink
extend --use-null-mr option for server side
Browse files Browse the repository at this point in the history
  • Loading branch information
bureddy committed Apr 20, 2023
1 parent f28fe04 commit ba1ce9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/perftest_communication.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,12 @@ int set_up_connection(struct pingpong_context *ctx,

my_dest[i].qpn = ctx->qp[i]->qp_num;
my_dest[i].psn = lrand48() & 0xffffff;
my_dest[i].rkey = ctx->mr[i]->rkey;
if (user_param->use_null_mr) {
my_dest[i].rkey = ctx->null_mr->lkey;
} else {
my_dest[i].rkey = ctx->mr[i]->rkey;
}


/* Each qp gives his receive buffer address.*/
my_dest[i].out_reads = user_param->out_reads;
Expand Down

0 comments on commit ba1ce9f

Please sign in to comment.