diff options
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/main.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 5163af314990..7fdd04af379d 100644 --- a/drivers/net/ethernet/mellanox/mlx4/main.c +++ b/drivers/net/ethernet/mellanox/mlx4/main.c | |||
@@ -1447,6 +1447,10 @@ static int mlx4_init_hca(struct mlx4_dev *dev) | |||
1447 | 1447 | ||
1448 | init_hca.log_uar_sz = ilog2(dev->caps.num_uars); | 1448 | init_hca.log_uar_sz = ilog2(dev->caps.num_uars); |
1449 | init_hca.uar_page_sz = PAGE_SHIFT - 12; | 1449 | init_hca.uar_page_sz = PAGE_SHIFT - 12; |
1450 | init_hca.mw_enabled = 0; | ||
1451 | if (dev->caps.flags & MLX4_DEV_CAP_FLAG_MEM_WINDOW || | ||
1452 | dev->caps.bmme_flags & MLX4_BMME_FLAG_TYPE_2_WIN) | ||
1453 | init_hca.mw_enabled = INIT_HCA_TPT_MW_ENABLE; | ||
1450 | 1454 | ||
1451 | err = mlx4_init_icm(dev, &dev_cap, &init_hca, icm_size); | 1455 | err = mlx4_init_icm(dev, &dev_cap, &init_hca, icm_size); |
1452 | if (err) | 1456 | if (err) |