IB/mlx5: Adjust mlx5 rate mapping to support 800Gb
authorPatrisious Haddad <phaddad@nvidia.com>
Wed, 20 Sep 2023 10:07:44 +0000 (13:07 +0300)
committerLeon Romanovsky <leon@kernel.org>
Tue, 26 Sep 2023 09:38:54 +0000 (12:38 +0300)
commit4f4db190893fb8dee3761b4c5a704ffa5713b73c
tree4e8bc550490aebbb534779f5e12b1e2a660be74e
parentb28ad32442bec2f0d9cb660d7d698a1a53c13d08
IB/mlx5: Adjust mlx5 rate mapping to support 800Gb

Adjust mlx5 function which maps the speed rate from IB spec values
to internal driver values to be able to handle speeds up to 800Gb.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Link: https://lore.kernel.org/r/301c803d8486b0df8aefad3fb3cc10dc58671985.1695204156.git.leon@kernel.org
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/qp.c