net/mlx5: allow unknown link speed
authorBenoît Ganne <bganne@cisco.com>
Sun, 22 Nov 2020 10:04:04 +0000 (12:04 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 22 Nov 2020 14:36:56 +0000 (15:36 +0100)
commit1688c580e854bcddc439009b24cb85e237f27366
tree613b38e99ffb82b756566c6885111a03abff0a48
parent8b91a7cd2c1e8ac0f816a5fe4dfb02753b420c01
net/mlx5: allow unknown link speed

mlx5 PMD refuses to update link state if link speed is defined but
status is down or if link speed is undefined but status is up, even if
the ioctl() succeeded.
This prevents application to detect link up/down event, especially when
the link speed is not correctly detected.

Commit [1] allowed returning unknown link speed, so now PMD allows
the return of unknown link speed in the above case.

Due to some old kernel driver bug, link speed wasn't detected properly.

[1] http://git.dpdk.org/dpdk/commit/?id=810b17d116f03

Signed-off-by: Benoît Ganne <bganne@cisco.com>
Signed-off-by: Raslan Darawsheh <rasland@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
doc/guides/rel_notes/release_20_11.rst
drivers/net/mlx5/linux/mlx5_ethdev_os.c