IB/mlx5: Expose correct maximum number of CQE capacity
Subsystems (3)
PATCH 1/1 IB/mlx5: Expose correct maximum number of CQE capacity
From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/[email protected]>
Maximum number of EQE capacity per CQ was mistakenly exposed as CQE. Fix that.
--- drivers/infiniband/hw/mlx5/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx5/main.c +1 -1
@@ -515,7 +515,7 @@ static int mlx5_ib_query_device(struct ib_device *ibdev, props->max_sge =min (max_rq_sg, max_sq_sg); props->max_sge_rd = props->max_sge; props->max_cq =1 <<MLX5_CAP_GEN (mdev, log_max_cq); - props->max_cqe = (1 <<MLX5_CAP_GEN (mdev, log_max_eq_sz)) -1 ; + props->max_cqe = (1 <<MLX5_CAP_GEN (mdev, log_max_cq_sz)) -1 ; props->max_mr =1 <<MLX5_CAP_GEN (mdev, log_max_mkey); props->max_pd =1 <<MLX5_CAP_GEN (mdev, log_max_pd); props->max_qp_rd_atom =1 <<MLX5_CAP_GEN (mdev, log_max_ra_req_qp);
Signature · 6 lines
1.7.12.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1452751900-23680-1-git-send-email-leon-2ukJVAZIZ/[email protected]
Sagi Grimberg
Reviewed-byQuoted 6 lines
From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/[email protected]>
Maximum number of EQE capacity per CQ was mistakenly exposed as CQE. Fix that.
Looks good,
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 10 lines · Sagi Grimberg
Quoted 6 lines
From: Leon Romanovsky <[email protected]>
Maximum number of EQE capacity per CQ was mistakenly exposed as CQE. Fix that.
Looks good,
Reviewed-by Sagi Grimberg <[email protected]>
Applied, thanks.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD