mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
net/mlx5: Decrease default mr cache size
[ Upstream commite8b26b2135] Delete initialization of high order entries in mr cache to decrease initial memory footprint. When required, the administrator can populate the entries with memory keys via the /sys interface. This approach is very helpful to significantly reduce the per HW function memory footprint in virtualization environments such as SRIOV. Fixes:9603b61de1("mlx5: Move pci device handling from mlx5_ib to mlx5_core") Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com> Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reported-by: Shalom Toledo <shalomt@mellanox.com> Acked-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
23bfd22981
commit
96d8f6246c
@@ -155,26 +155,6 @@ static struct mlx5_profile profile[] = {
|
||||
.size = 8,
|
||||
.limit = 4
|
||||
},
|
||||
.mr_cache[16] = {
|
||||
.size = 8,
|
||||
.limit = 4
|
||||
},
|
||||
.mr_cache[17] = {
|
||||
.size = 8,
|
||||
.limit = 4
|
||||
},
|
||||
.mr_cache[18] = {
|
||||
.size = 8,
|
||||
.limit = 4
|
||||
},
|
||||
.mr_cache[19] = {
|
||||
.size = 4,
|
||||
.limit = 2
|
||||
},
|
||||
.mr_cache[20] = {
|
||||
.size = 4,
|
||||
.limit = 2
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user