]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: fix wrong comment about the reason of subtract one from the max_cqes
authorDotan Barak <dotanb@dev.mellanox.co.il>
Sun, 3 Nov 2019 09:11:35 +0000 (11:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 02:01:01 +0000 (18:01 -0800)
commitd356d3f9002d6cbdb1f20318c04bae8d23b4c5c9
treec45f78c1b2acd8e31feda1d4b600d8feb95df9bf
parentf3e6d2123fd9c7caa3c078e678d01a009dfbc893
mlx4_core: fix wrong comment about the reason of subtract one from the max_cqes

The reason for the pre-allocation of one CQE is to enable resizing of
the CQ.
Fix comment accordingly.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c