NA OFI: gni provider does not support user requested key in recent versions
@@ -2250,6 +2250,8 @@ na_ofi_msg_buf_alloc(na_class_t *na_class, na_size_t size, void **plugin_data)
/* Set IOV */
mr_iov.iov_base = mem_ptr;
mr_iov.iov_len = (size_t) size;
+ /* GNI provider does not support user requested key */
+ if (domain->nod_prov_type != NA_OFI_PROV_GNI)
attr.requested_key = (uint64_t) mem_ptr;
/* If auth key, register memory with new authorization key */
