aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/main.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/main.c4
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 b9dde139dac5..d180bc46826a 100644
--- a/drivers/net/ethernet/mellanox/mlx4/main.c
+++ b/drivers/net/ethernet/mellanox/mlx4/main.c
@@ -1431,6 +1431,10 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
1431 1431
1432 init_hca.log_uar_sz = ilog2(dev->caps.num_uars); 1432 init_hca.log_uar_sz = ilog2(dev->caps.num_uars);
1433 init_hca.uar_page_sz = PAGE_SHIFT - 12; 1433 init_hca.uar_page_sz = PAGE_SHIFT - 12;
1434 init_hca.mw_enabled = 0;
1435 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_MEM_WINDOW ||
1436 dev->caps.bmme_flags & MLX4_BMME_FLAG_TYPE_2_WIN)
1437 init_hca.mw_enabled = INIT_HCA_TPT_MW_ENABLE;
1434 1438
1435 err = mlx4_init_icm(dev, &dev_cap, &init_hca, icm_size); 1439 err = mlx4_init_icm(dev, &dev_cap, &init_hca, icm_size);
1436 if (err) 1440 if (err)