From f4a706995ac6151044ab01677ae5fd57b8f5c0b9 Mon Sep 17 00:00:00 2001 From: Devendar Bureddy Date: Wed, 19 Apr 2023 18:43:00 +0000 Subject: [PATCH] extend --use-null-mr option for server side --- src/perftest_communication.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/perftest_communication.c b/src/perftest_communication.c index a02a0349..3645c035 100755 --- a/src/perftest_communication.c +++ b/src/perftest_communication.c @@ -851,7 +851,11 @@ 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;