net/mlx5: fix link speed calculation on Windows
authorTal Shnaiderman <talshn@nvidia.com>
Tue, 6 Apr 2021 07:31:59 +0000 (10:31 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 13 Apr 2021 11:22:54 +0000 (13:22 +0200)
commitd5003573ac8e27c159f16fef38c8734a7d366aba
tree9da442ea500dfc511045f0478ab861b2896d82c7
parentedf325d421e893dd04503b41045beaebd7b20c7c
net/mlx5: fix link speed calculation on Windows

In Windows DevX returns the rate of the current link speed
in bit/s, this rate was converted to Mibit/s instead of the Mbit/s
rate expected by DPDK resulting in wrong link speed reporting.

Fixes: 6fbd73709ee4 ("net/mlx5: support link update on Windows")
Cc: stable@dpdk.org
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/windows/mlx5_ethdev_os.c