stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IB/mlx5: Expose correct maximum number of CQE capacity
@ 2016-01-14  6:11 Leon Romanovsky
  2016-01-14 11:06 ` Sagi Grimberg
  0 siblings, 1 reply; 3+ messages in thread
From: Leon Romanovsky @ 2016-01-14  6:11 UTC (permalink / raw)
  To: dledford; +Cc: linux-rdma, Leon Romanovsky, stable

From: Leon Romanovsky <leonro@mellanox.com>

Maximum number of EQE capacity per CQ was mistakenly exposed
as CQE. Fix that.

Fixes: 938fe83c8dcb ("net/mlx5_core: New device capabilities handling")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Cc: <stable@vger.kernel.org>
---
 drivers/infiniband/hw/mlx5/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 5e3d3aea35bc..155dbe3826f8 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -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);
-- 
1.7.12.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] IB/mlx5: Expose correct maximum number of CQE capacity
  2016-01-14  6:11 [PATCH] IB/mlx5: Expose correct maximum number of CQE capacity Leon Romanovsky
@ 2016-01-14 11:06 ` Sagi Grimberg
  2016-01-19 20:54   ` Doug Ledford
  0 siblings, 1 reply; 3+ messages in thread
From: Sagi Grimberg @ 2016-01-14 11:06 UTC (permalink / raw)
  To: Leon Romanovsky, dledford; +Cc: linux-rdma, Leon Romanovsky, stable


> From: Leon Romanovsky <leonro@mellanox.com>
>
> Maximum number of EQE capacity per CQ was mistakenly exposed
> as CQE. Fix that.
>

Looks good,

Reviewed-by: Sagi Grimberg <sagig@mellanox.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] IB/mlx5: Expose correct maximum number of CQE capacity
  2016-01-14 11:06 ` Sagi Grimberg
@ 2016-01-19 20:54   ` Doug Ledford
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Ledford @ 2016-01-19 20:54 UTC (permalink / raw)
  To: Sagi Grimberg, Leon Romanovsky; +Cc: linux-rdma, Leon Romanovsky, stable

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

On 01/14/2016 06:06 AM, Sagi Grimberg wrote:
> 
>> From: Leon Romanovsky <leonro@mellanox.com>
>>
>> Maximum number of EQE capacity per CQ was mistakenly exposed
>> as CQE. Fix that.
>>
> 
> Looks good,
> 
> Reviewed-by: Sagi Grimberg <sagig@mellanox.com>

Applied, thanks.

-- 
Doug Ledford <dledford@redhat.com>
              GPG KeyID: 0E572FDD



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-19 20:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-14  6:11 [PATCH] IB/mlx5: Expose correct maximum number of CQE capacity Leon Romanovsky
2016-01-14 11:06 ` Sagi Grimberg
2016-01-19 20:54   ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).