Skip to content

Commit

Permalink
mlx5: fix error message in mlx5 verbs
Browse files Browse the repository at this point in the history
[ Upstream commit eb20861 ]

The error message contains incorrect information about the error cause

Fixes: 0c7ac10 ("Add XRC support")
Signed-off-by: Danila Chernetsov <listdansp@mail.ru>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
DanCh2020 authored and nmorey committed Jun 10, 2024
1 parent 1059962 commit 4ea2c0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions providers/mlx5/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3590,9 +3590,9 @@ struct ibv_srq *mlx5_create_srq_ex(struct ibv_context *context,
*/
max_sge = ctx->max_recv_wr / sizeof(struct mlx5_wqe_data_seg);
if (attr->attr.max_sge > max_sge) {
mlx5_err(ctx->dbg_fp, "%s-%d:max_wr %d, max_srq_recv_wr %d\n",
__func__, __LINE__, attr->attr.max_wr,
ctx->max_srq_recv_wr);
mlx5_err(ctx->dbg_fp, "%s-%d:attr.max_sge %d, max_sge %d\n",
__func__, __LINE__, attr->attr.max_sge,
max_sge);
errno = EINVAL;
goto err;
}
Expand Down

0 comments on commit 4ea2c0f

Please sign in to comment.