mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Reviewed-by: Majd Dibbiny <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
18bd907292
commit
0fd586de65
1 changed files with 3 additions and 0 deletions
|
|
@ -563,6 +563,9 @@ static int mlx4_ib_query_device(struct ib_device *ibdev,
|
|||
props->max_wq_type_rq = props->max_qp;
|
||||
}
|
||||
|
||||
props->cq_caps.max_cq_moderation_count = MLX4_MAX_CQ_COUNT;
|
||||
props->cq_caps.max_cq_moderation_period = MLX4_MAX_CQ_PERIOD;
|
||||
|
||||
if (!mlx4_is_slave(dev->dev))
|
||||
err = mlx4_get_internal_clock_params(dev->dev, &clock_params);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue