diff options
author | 2025-03-04 18:06:16 +0200 | |
---|---|---|
committer | 2025-03-06 17:53:34 -0800 | |
commit | 65a5d3557184974608761b6abae0701f7e63a6de (patch) | |
tree | 4065a7c41ae52acb95c82859b8f46751966d6e3e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5: Relocate function declarations from port.h to mlx5_core.h (diff) | |
download | linux-rng-65a5d3557184974608761b6abae0701f7e63a6de.tar.xz linux-rng-65a5d3557184974608761b6abae0701f7e63a6de.zip |
net/mlx5: Refactor link speed handling with mlx5_link_info struct
Introduce struct mlx5_link_info with a speed field and change the
types of mlx5e_link_speed and mlx5e_ext_link_speed from arrays of
u32 to arrays of struct mlx5_link_info. These arrays are renamed
to mlx5e_link_info and mlx5e_ext_link_info, respectively.
This change prepares for a future patch that will introduce a lanes
field in struct mlx5_link_info and add lanes mapping alongside the
speed for each link mode in the two arrays.
Additionally, rename function mlx5_port_speed2linkmodes() to
mlx5_port_info2linkmodes() and function mlx5_port_ptys2speed()
to mlx5_port_ptys2info() and update the speed parameter/return
type to struct mlx5_link_info, in preparation for the upcoming
patch where these functions will also utilize the lanes field.
Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250304160620.417580-3-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