From: Håkon Bugge Date: Sat, 5 May 2018 13:13:50 +0000 (+0200) Subject: Revert "mlx4: change the ICM table allocations to lowest needed size" X-Git-Tag: v4.1.12-124.31.3~804 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6b37dea0a07c0e98fb4e4e26713a0cfc7f77a2ba;p=users%2Fjedix%2Flinux-maple.git Revert "mlx4: change the ICM table allocations to lowest needed size" This reverts commit UEK4-QU7 commit: e7567cf1d53bddbe233dabea5c632658671dae9e ("mlx4: change the ICM table allocations to lowest needed size") Orabug: 27980030 Signed-off-by: Håkon Bugge < haakon.bugge@oracle.com> Reviewed-by: Chuck Anderson Signed-off-by: Qing Huang Signed-off-by: Brian Maly --- diff --git a/drivers/net/ethernet/mellanox/mlx4/icm.c b/drivers/net/ethernet/mellanox/mlx4/icm.c index 84c5506aed9aa..d633e926cf8f3 100644 --- a/drivers/net/ethernet/mellanox/mlx4/icm.c +++ b/drivers/net/ethernet/mellanox/mlx4/icm.c @@ -42,9 +42,13 @@ #include "icm.h" #include "fw.h" +/* + * We allocate in as big chunks as we can, up to a maximum of 256 KB + * per chunk. + */ enum { - MLX4_ICM_ALLOC_SIZE = 1 << 13, - MLX4_TABLE_CHUNK_SIZE = 1 << 13 + MLX4_ICM_ALLOC_SIZE = 1 << 18, + MLX4_TABLE_CHUNK_SIZE = 1 << 18 }; static void mlx4_free_icm_pages(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk)