diff options
| author | Rongwei Liu <[email protected]> | 2022-01-28 04:13:07 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2022-03-17 18:51:57 +0000 |
| commit | f51bb51793008d559d45a5fb0d856b2deb87890a (patch) | |
| tree | 6f7291eff4a9b315e06a4476fa18fb93d36d5d8e /net/unix/af_unix.c | |
| parent | net/mlx5: DR, Remove icm_addr from mlx5dr_icm_chunk to reduce memory (diff) | |
| download | kernel-f51bb51793008d559d45a5fb0d856b2deb87890a.tar.gz kernel-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 <[email protected]>
Reviewed-by: Shun Hao <[email protected]>
Reviewed-by: Yevgeny Kliteynik <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
