diff options
author | Rongwei Liu <rongweil@nvidia.com> | 2022-01-28 07:13:07 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-03-17 21:51:57 +0300 |
commit | f51bb51793008d559d45a5fb0d856b2deb87890a (patch) | |
tree | 6f7291eff4a9b315e06a4476fa18fb93d36d5d8e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5c4f9b6e91e8b3957abe95b18040cc519ce6edc0 (diff) | |
download | linux-f51bb51793008d559d45a5fb0d856b2deb87890a.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions