linux-rdma / perftest

Infiniband Verbs Performance Tests
Other
594 stars 283 forks source link

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

Closed changchengx closed 1 year ago

changchengx commented 1 year ago

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;
HassanKhadour commented 1 year ago

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