]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacc93573485964f30d12467b10d61000be860b8c
tree3fc0dd6e3fa5df020a01be0197d9978f09a7d39e
parentd41f078f5648a5b0e2858f2bdfb4b90896672841
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