aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorRongwei Liu <rongweil@nvidia.com>2022-01-28 06:13:07 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2022-03-17 11:51:57 -0700
commitf51bb51793008d559d45a5fb0d856b2deb87890a (patch)
tree6f7291eff4a9b315e06a4476fa18fb93d36d5d8e /net/unix/af_unix.c
parentnet/mlx5: DR, Remove icm_addr from mlx5dr_icm_chunk to reduce memory (diff)
downloadwireguard-linux-f51bb51793008d559d45a5fb0d856b2deb87890a.tar.xz
wireguard-linux-f51bb51793008d559d45a5fb0d856b2deb87890a.zip
net/mlx5: DR, Remove num_of_entries byte_size from struct mlx5_dr_icm_chunk
Target to reduce the memory consumption in large scale of flow rules. They can be calculated quickly from buddy memory pool. 1. num_of_entries calls dr_icm_pool_get_chunk_num_of_entries(). 2. byte_size calls dr_icm_pool_get_chunk_byte_size(). Use chunk size in dr_icm_chunk to speed up and the one in dr_ste_htbl will be removed in the upcoming commit. This commit reduce 8 bytes from struct mlx5_dr_icm_chunk and its current size is 56 bytes. Signed-off-by: Rongwei Liu <rongweil@nvidia.com> Reviewed-by: Shun Hao <shunh@nvidia.com> Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions