net/mlx5: Expose port speed when possible
authorMark Bloch <markb@mellanox.com>
Tue, 25 Feb 2020 18:04:40 +0000 (18:04 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 9 Mar 2020 23:58:31 +0000 (16:58 -0700)
commitc268ca6087f553bfc0e16ffec412b983ffe32fd4
tree3fc0dd6e3fa5df020a01be0197d9978f09a7d39e
parenta70ed9d8ecf395ca7d15c2d13782cc0055398ed5
net/mlx5: Expose port speed when possible

When port speed can't be reported based on ext_eth_proto_capability
or eth_proto_capability instead of reporting speed as unknown check
if the port's speed can be inferred based on the data_rate_oper field.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c