diff options
author | 2025-04-10 22:17:34 +0300 | |
---|---|---|
committer | 2025-04-14 17:29:15 -0700 | |
commit | d171ce3d988868bed9dc3c9eeb8428f87dd9ac85 (patch) | |
tree | 0e1b9b4c269a077060c2acddd7a8623ac7615452 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | net/mlx5: HWS, Make pool single resource (diff) | |
download | wireguard-linux-d171ce3d988868bed9dc3c9eeb8428f87dd9ac85.tar.xz wireguard-linux-d171ce3d988868bed9dc3c9eeb8428f87dd9ac85.zip |
net/mlx5: HWS, Refactor pool implementation
Refactor the pool implementation to remove unused flags and clarify its
usage. A pool represents a single range of STEs or STCs which are
allocated at pool creation time.
Pools are used under three patterns:
1. STCs are allocated one at a time from a global pool using a bitmap
based implementation.
2. Action STEs are allocated in power-of-two blocks using a buddy
algorithm.
3. Match STEs do not use allocation, since insertion into these tables
is based on hashes or direct addressing. In such cases we use a pool
only to create the STE range.
Signed-off-by: Vlad Dogaru <vdogaru@nvidia.com>
Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Link: https://patch.msgid.link/1744312662-356571-5-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions