Skip to content

Commit

Permalink
efa: Update correct errno return on create extended QP function
Browse files Browse the repository at this point in the history
EFA device only supports UD QP, therefore in case QP type is not UD
an errno of EOPNUTSUPP should be returned.

Signed-off-by: Chen Brasch <cbrasch@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
  • Loading branch information
Chen Brasch authored and gal-pressman committed Jun 22, 2020
1 parent 9fc7152 commit adfff41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/efa/verbs.c
Expand Up @@ -927,7 +927,7 @@ struct ibv_qp *efa_create_qp_ex(struct ibv_context *ibvctx,
struct ibv_qp_init_attr_ex *attr_ex)
{
if (attr_ex->qp_type != IBV_QPT_UD) {
errno = EINVAL;
errno = EOPNOTSUPP;
return NULL;
}

Expand Down

0 comments on commit adfff41

Please sign in to comment.