diff options
author | Rongwei Liu <rongweil@nvidia.com> | 2024-12-19 20:58:31 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-23 21:34:44 +0300 |
commit | ddbb5ddc43ad000a984149db5af1133433938404 (patch) | |
tree | 823aa8e72eb4553e79fc1db23e59ee3ac44917d0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8d94a744e1e2151429ebbb32f312bc14e969a007 (diff) | |
download | linux-ddbb5ddc43ad000a984149db5af1133433938404.tar.xz |
net/mlx5: LAG, Refactor lag logic
Wrap the lag pf access into two new macros:
1. ldev_for_each()
2. ldev_for_each_reverse()
The maximum number of lag ports and the index to `natvie_port_num`
mapping will be handled by the two new macros.
Users shouldn't use the for loop anymore.
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241219175841.1094544-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions