net/mlx5: ethtool, Fix type analysis of advertised link-mode
authorAya Levin <ayal@mellanox.com>
Thu, 28 Feb 2019 07:27:33 +0000 (09:27 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 Mar 2019 19:24:42 +0000 (12:24 -0700)
commit8d047bf56a2cc13d90e6a5074015d65045fd43e7
tree599dee207c435939f8e96e5c5cfa7a58da5088e2
parent80a2a9026b24c6bd34b8d58256973e22270bedec
net/mlx5: ethtool, Fix type analysis of advertised link-mode

Ethtool option set_link_ksettings allows setting of legacy link-modes
or extended link-modes. Refine the decision of which type of link-modes
is set.

Fixes: 6a897372417e ("net/mlx5: ethtool, Add ethtool support for 50Gbps per lane link modes")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c