diff options
author | 2022-01-28 06:10:54 +0200 | |
---|---|---|
committer | 2022-03-17 11:51:56 -0700 | |
commit | 003f4f9acb057e405375492e94732183e638be29 (patch) | |
tree | 70465862bdc3d567938d418e7842fbc58f029e89 /net/unix/af_unix.c | |
parent | net/mlx5: DR, Adjust structure member to reduce memory hole (diff) | |
download | wireguard-linux-003f4f9acb057e405375492e94732183e638be29.tar.xz wireguard-linux-003f4f9acb057e405375492e94732183e638be29.zip |
net/mlx5: DR, Remove mr_addr rkey from struct mlx5dr_icm_chunk
Reduce memory footprint by removing mr_addr and rkey from
mlx5_dr_icm_chunk.
1. mr_addr is calculated by mlx5dr_icm_pool_get_chunk_mr_addr()
2. rkey is calculated by mlx5dr_icm_pool_get_chunk_rkey()
The two new functions are very lightweight and straightforward.
Reduce 8 bytes from struct mlx5_dr_icm_chunk, its current size is
72 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