IB/mlx4: Add CQ moderation capability to query_device
authorYonatan Cohen <yonatanc@mellanox.com>
Mon, 13 Nov 2017 08:51:17 +0000 (10:51 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 21:59:22 +0000 (16:59 -0500)
commit0fd586de65ae6a249433e1b496f5ed9ce199be73
treef521b1eeef74bc26db2c9c1762164edb68f4241e
parent18bd90729237dc6ddbad01bc9618148224f03590
IB/mlx4: Add CQ moderation capability to query_device

query_device can now obtain the maximum values for
cq_max_count and cq_period, needed for cq moderation.

Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/main.c