Skip to content

Commit c3c6099

Browse files
authored
Merge pull request #360 from NitzanLavy/write_with_imm_efa_support
Perftest: Prevent write with imm from running if not supported
2 parents 73e3cb1 + 81c82d7 commit c3c6099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/perftest_communication.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,7 +2028,7 @@ int check_mtu(struct ibv_context *context,struct perftest_parameters *user_param
20282028
return FAILURE;
20292029
}
20302030
}
2031-
} else if (user_param->verb == READ || user_param->verb == WRITE) {
2031+
} else if (user_param->verb == READ || user_param->verb == WRITE || user_param->verb == WRITE_IMM) {
20322032
#ifdef HAVE_SRD
20332033
struct efadv_device_attr efa_device_attr = {0};
20342034

@@ -2047,7 +2047,7 @@ int check_mtu(struct ibv_context *context,struct perftest_parameters *user_param
20472047
fprintf(stderr, "SRD connection not possible in READ verb\n");
20482048
exit(1);
20492049
#endif
2050-
} else if (user_param->verb == WRITE) {
2050+
} else if (user_param->verb == WRITE || user_param->verb == WRITE_IMM) {
20512051
#ifdef HAVE_SRD_WITH_RDMA_WRITE
20522052
if (!(efa_device_attr.device_caps & EFADV_DEVICE_ATTR_CAPS_RDMA_WRITE)) {
20532053
fprintf(stderr, "Write verb is not supported with this EFA device\n");

0 commit comments

Comments
 (0)