diff options
author | Carol L Soto <clsoto@linux.vnet.ibm.com> | 2015-08-05 19:05:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-08 01:55:48 +0300 |
commit | fe1e1876d8f6d8d4b45e3940e6dd43cd3b18d958 (patch) | |
tree | e8805ac3f7d700f66b5fc00bff420496d1044ccd /drivers/net/ethernet | |
parent | 95a428f3be450350773fff3a5aabfd4de1a59fc7 (diff) | |
download | linux-fe1e1876d8f6d8d4b45e3940e6dd43cd3b18d958.tar.xz |
net/mlx5_core: Set log_uar_page_sz for non 4K page size architecture
failed to configure the page size for architectures with page size
different than 4K.
Fixes: 938fe83 ("net/mlx5_core: New device capabilities handling")
Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
Acked-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index afad529838de..06e3e1e54c35 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -391,6 +391,8 @@ static int handle_hca_cap(struct mlx5_core_dev *dev) /* disable cmdif checksum */ MLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0); + MLX5_SET(cmd_hca_cap, set_hca_cap, log_uar_page_sz, PAGE_SHIFT - 12); + err = set_caps(dev, set_ctx, set_sz); query_ex: |