Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IB/IFACE: deny iface create if DEVX rcqp requested #178

Merged
merged 1 commit into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/uct/ib/base/ib_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,12 @@ UCS_CLASS_INIT_FUNC(uct_ib_iface_t, uct_ib_iface_ops_t *ops, uct_md_h md,
goto err;
}

if (ib_md->devx_objs & UCS_BIT(UCT_IB_DEVX_OBJ_RCQP)) {
ucs_error("DEVX object 'rcqp' is not supported");
status = UCS_ERR_UNSUPPORTED;
goto err;
}

if (!(params->open_mode & UCT_IFACE_OPEN_MODE_DEVICE)) {
return UCS_ERR_UNSUPPORTED;
}
Expand Down
1 change: 1 addition & 0 deletions src/uct/ib/base/ib_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,7 @@ ucs_status_t uct_ib_md_open(uct_component_t *component, const char *md_name,
goto out_free_dev_list;
}

md->devx_objs = md_config->devx_objs;
/* cppcheck-suppress autoVariables */
*md_p = &md->super;
status = UCS_OK;
Expand Down
1 change: 1 addition & 0 deletions src/uct/ib/base/ib_md.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ typedef struct uct_ib_md {
int check_subnet_filter;
uint64_t subnet_filter;
double pci_bw;
unsigned devx_objs; /**< Objects to be created by DevX */
} uct_ib_md_t;


Expand Down