net/mlx5: ethtool, Allow legacy link-modes configuration via non-extended ptys
authorAya Levin <ayal@mellanox.com>
Thu, 28 Feb 2019 07:39:02 +0000 (09:39 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 Mar 2019 19:24:42 +0000 (12:24 -0700)
commitdd1b9e09c12b4231148f446c2eefd886ef6e3ddd
tree849902dae98a7c918a31be6d060237547e1418ee
parent8d047bf56a2cc13d90e6a5074015d65045fd43e7
net/mlx5: ethtool, Allow legacy link-modes configuration via non-extended ptys

Allow configuration of legacy link-modes even when extended link-modes
are supported. This requires reading of legacy advertisement even when
extended link-modes are supported. Since legacy and extended
advertisement are mutually excluded, wait for empty reply from extended
advertisement before reading legacy advertisement.

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/port.c
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c