Skip to content
Snippets Groups Projects
Commit da345796 authored by Ali Mohammed's avatar Ali Mohammed
Browse files

remove unused function

parent 121dd172
Branches
No related tags found
No related merge requests found
......@@ -883,39 +883,6 @@ mstro_mr_key_get(struct fi_info* fi, struct fid_mr* mr,
return MSTRO_OK;
}
static inline
mstro_status
mstro_ofi__maybe_register_as_read_target_buffer_host(
int mr_mode, struct fid_ep *ep,
struct fid_domain *domain, const void* buf, size_t len,
struct fid_mr **mr, void **local_buf_mr_desc)
{
mstro_status status = MSTRO_UNIMPL;
if(mr_mode & FI_MR_LOCAL) {
uint64_t requested_key = mr_mode & FI_MR_PROV_KEY ? 0 : mstro_memory_new_key();
int err = fi_mr_reg(domain,buf, len,
FI_READ, 0, requested_key, 0, mr, NULL);
if (err) {
ERR("Couldn't register memory region for RDMA transport (err: %d, %s)\n",
err, fi_strerror(-err));
return MSTRO_OFI_FAIL;
}
*local_buf_mr_desc = fi_mr_desc(*mr);
DEBUG("Registered memory region for RDMA transport successfully\n");
/*maybe bind memory to ep */
status = mstro_ofi__maybe_bind_and_enable_mreg(ep,mr_mode, *mr);
}
else
{
DEBUG("Fabric provider does not require registering host local buffers\n");
*mr=NULL;
*local_buf_mr_desc = NULL;
status= MSTRO_OK;
}
return status;
}
static inline
mstro_status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment