mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
committed by
Leon Romanovsky
parent
b28ad32442
commit
4f4db19089
@@ -3436,7 +3436,7 @@ static int ib_rate_to_mlx5(struct mlx5_ib_dev *dev, u8 rate)
|
||||
if (rate == IB_RATE_PORT_CURRENT)
|
||||
return 0;
|
||||
|
||||
if (rate < IB_RATE_2_5_GBPS || rate > IB_RATE_600_GBPS)
|
||||
if (rate < IB_RATE_2_5_GBPS || rate > IB_RATE_800_GBPS)
|
||||
return -EINVAL;
|
||||
|
||||
stat_rate_support = MLX5_CAP_GEN(dev->mdev, stat_rate_support);
|
||||
|
||||
Reference in New Issue
Block a user