linux-rdma/perftest

Question: why qp_access_flags is set to be IBV_ACCESS_REMOTE_WRITE without local write

changchengx opened this issue · 2 comments

Question: why qp_access_flags is set to be IBV_ACCESS_REMOTE_WRITE without local write

For RDMA_WRITE operation, after creating RC QP and modify it from RESET to INIT, why ibv_qp_attr.qp_access_flags is set to be IBV_ACCESS_REMOTE_WRITE without IBV_ACCESS_LOCAL_WRITE?
https://github.com/linux-rdma/perftest/blob/v4.5-0.20/src/perftest_resources.c#L2811

case WRITE : attr.qp_access_flags = IBV_ACCESS_REMOTE_WRITE; break;

Hi @changchengx , AFAIK IBV_ACCESS_LOCAL_WRITE is set for the mr in case of write Verb , see create_single_mr in perftest_resources.c