diff options
author | Roland Dreier <roland@purestorage.com> | 2012-03-05 13:05:28 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-03-12 19:24:59 -0400 |
commit | db5a7a65c05867cb6ff5cb6d556a0edfce631d2d (patch) | |
tree | fdb7cb84d4ae634303c5337203ce482ae4c83c97 /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | 096335b3f9830b90d13aee77252cf6f5f12a258c (diff) |
mlx4_core: Scale size of MTT table with system RAM
The current driver defaults to 1M MTT segments, where each segment holds
8 MTT entries. This limits the total memory registered to 8M * PAGE_SIZE
which is 32GB with 4K pages. Since systems that have much more memory
are pretty common now (at least among systems with InfiniBand hardware),
this limit ends up getting hit in practice quite a bit.
Handle this by having the driver allocate at least enough MTT entries to
cover 2 * totalram pages.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index 1aa362181a09..cb17af4d9abd 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h | |||
@@ -403,7 +403,7 @@ struct mlx4_profile { | |||
403 | int num_cq; | 403 | int num_cq; |
404 | int num_mcg; | 404 | int num_mcg; |
405 | int num_mpt; | 405 | int num_mpt; |
406 | int num_mtt; | 406 | unsigned num_mtt; |
407 | }; | 407 | }; |
408 | 408 | ||
409 | struct mlx4_fw { | 409 | struct mlx4_fw { |