From: Dotan Barak Date: Thu, 24 May 2012 09:00:04 +0000 (+0300) Subject: mlx4_core: fix wrong comment about the reason of subtract one from the max_cqes X-Git-Tag: v4.1.12-92~319^2^2~6^2~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=03857fc16e33c06ff828247b15f559ce9eb9aa5d;p=users%2Fjedix%2Flinux-maple.git mlx4_core: fix wrong comment about the reason of subtract one from the max_cqes Signed-off-by: Dotan Barak Signed-off-by: Eli Cohen Signed-off-by: Vladimir Sokolovsky (Ported from Mellanox OFED 2.4) Signed-off-by: Mukesh Kacker --- diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 481978f288a2..35f455d53b64 100644 --- a/drivers/net/ethernet/mellanox/mlx4/main.c +++ b/drivers/net/ethernet/mellanox/mlx4/main.c @@ -447,8 +447,7 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) dev->caps.max_rq_desc_sz = dev_cap->max_rq_desc_sz; /* * Subtract 1 from the limit because we need to allocate a - * spare CQE so the HCA HW can tell the difference between an - * empty CQ and a full CQ. + * spare CQE to enable resizing the CQ */ dev->caps.max_cqes = dev_cap->max_cq_sz - 1; dev->caps.reserved_cqs = dev_cap->reserved_cqs;