commit | 25a96f057a0fab318376c85bd83afda267f8ad33 | [log] [tgz] |
---|---|---|
author | Danielle Ratson <danieller@nvidia.com> | Tue Feb 02 20:06:11 2021 +0200 |
committer | Jakub Kicinski <kuba@kernel.org> | Wed Feb 03 18:37:29 2021 -0800 |
tree | 3234b5861265d434ca85e193c34478c5c03e31f9 | |
parent | 763ece86f0c27c751d6fac6b15863f5124f79a52 [diff] |
mlxsw: ethtool: Pass link mode in use to ethtool Currently, when user space queries the link's parameters, as speed and duplex, each parameter is passed from the driver to ethtool. Instead, pass the link mode bit in use. In Spectrum-1, simply pass the bit that is set to '1' from PTYS register. In Spectrum-2, pass the first link mode bit in the mask of the used link mode. Signed-off-by: Danielle Ratson <danieller@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>