]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Revert "mlx4: change the ICM table allocations to lowest needed size"
authorHåkon Bugge <Haakon.Bugge@oracle.com>
Sat, 5 May 2018 13:13:50 +0000 (15:13 +0200)
committerBrian Maly <brian.maly@oracle.com>
Mon, 21 May 2018 20:32:52 +0000 (16:32 -0400)
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 <chuck.anderson@oracle.com>
Signed-off-by: Qing Huang <qing.huang@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/mellanox/mlx4/icm.c

index 84c5506aed9aa1c7755f4612ae075e9721e2c287..d633e926cf8f3c0f7c2bff030ec18e007d296352 100644 (file)
 #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)