Skip to content

Commit

Permalink
Fix the ibv backend with old libibverbs that does not support odp
Browse files Browse the repository at this point in the history
  • Loading branch information
JiakunYan committed Sep 5, 2023
1 parent 4cbd6fd commit ddfad72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lci/backend/ibv/server_ibv.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ void LCISD_server_init(LCI_device_t device, LCIS_server_t* s)

server->odp_mr = NULL;
if (LCI_IBV_USE_ODP == 2) {
#ifdef IBV_ODP_SUPPORT_SRQ_RECV
const uint32_t rc_caps_mask = IBV_ODP_SUPPORT_SEND | IBV_ODP_SUPPORT_RECV |
IBV_ODP_SUPPORT_WRITE | IBV_ODP_SUPPORT_READ |
IBV_ODP_SUPPORT_SRQ_RECV;
Expand All @@ -141,6 +142,10 @@ void LCISD_server_init(LCI_device_t device, LCIS_server_t* s)
fprintf(stderr, "Couldn't register MR\n");
exit(EXIT_FAILURE);
}
#else
fprintf(stderr, "ODP is not supported on this platform!\n");
exit(EXIT_FAILURE);
#endif
}

// query port attribute
Expand Down

0 comments on commit ddfad72

Please sign in to comment.