Skip to content

Commit 499578c

Browse files
Dotan BarakSomasundaram Krishnasamy
authored andcommitted
mlx4_core: fix wrong comment about the reason of subtract one from the max_cqes
Signed-off-by: Dotan Barak <[email protected]> Signed-off-by: Eli Cohen <[email protected]> Signed-off-by: Vladimir Sokolovsky <[email protected]> (Ported from Mellanox OFED 2.4) Signed-off-by: Mukesh Kacker <[email protected]> Orabug: 27510504 (cherry picked from commit 03857fc) cherry-pick-repo=linux-uek.git Signed-off-by: Qing Huang <[email protected]> Signed-off-by: Aron Silverton <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]>
1 parent 718195d commit 499578c

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx4

1 file changed

+1
-2
lines changed

drivers/net/ethernet/mellanox/mlx4/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,7 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
471471
dev->caps.max_rq_desc_sz = dev_cap->max_rq_desc_sz;
472472
/*
473473
* Subtract 1 from the limit because we need to allocate a
474-
* spare CQE so the HCA HW can tell the difference between an
475-
* empty CQ and a full CQ.
474+
* spare CQE to enable resizing the CQ
476475
*/
477476
dev->caps.max_cqes = dev_cap->max_cq_sz - 1;
478477
dev->caps.reserved_cqs = dev_cap->reserved_cqs;

0 commit comments

Comments
 (0)