diff options
Diffstat (limited to 'drivers/net/mlx4/main.c')
-rw-r--r-- | drivers/net/mlx4/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index 07c2847a7cc8..ed7e8d76cde0 100644 --- a/drivers/net/mlx4/main.c +++ b/drivers/net/mlx4/main.c | |||
@@ -149,7 +149,8 @@ static int __devinit mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev | |||
149 | dev->caps.max_cqes = dev_cap->max_cq_sz - 1; | 149 | dev->caps.max_cqes = dev_cap->max_cq_sz - 1; |
150 | dev->caps.reserved_cqs = dev_cap->reserved_cqs; | 150 | dev->caps.reserved_cqs = dev_cap->reserved_cqs; |
151 | dev->caps.reserved_eqs = dev_cap->reserved_eqs; | 151 | dev->caps.reserved_eqs = dev_cap->reserved_eqs; |
152 | dev->caps.reserved_mtts = dev_cap->reserved_mtts; | 152 | dev->caps.reserved_mtts = DIV_ROUND_UP(dev_cap->reserved_mtts, |
153 | MLX4_MTT_ENTRY_PER_SEG); | ||
153 | dev->caps.reserved_mrws = dev_cap->reserved_mrws; | 154 | dev->caps.reserved_mrws = dev_cap->reserved_mrws; |
154 | dev->caps.reserved_uars = dev_cap->reserved_uars; | 155 | dev->caps.reserved_uars = dev_cap->reserved_uars; |
155 | dev->caps.reserved_pds = dev_cap->reserved_pds; | 156 | dev->caps.reserved_pds = dev_cap->reserved_pds; |