net/mlx5e: ethtool, Avoid setting speed to 56GBASE when autoneg off
authorMohamad Heib <mohamadh@mellanox.com>
Tue, 23 Apr 2019 18:13:48 +0000 (21:13 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 8 Aug 2019 20:01:18 +0000 (13:01 -0700)
commit5faf5b70c51dd9c9905bf8209e33cbd867486607
tree48bcecbb7de0c8040dad74bdf491891d3618f2ed
parent466df6eb4a9e813b3cfc674363316450c57a89c5
net/mlx5e: ethtool, Avoid setting speed to 56GBASE when autoneg off

Setting speed to 56GBASE is allowed only with auto-negotiation enabled.

This patch prevent setting speed to 56GBASE when auto-negotiation disabled.

Fixes: f62b8bb8f2d3 ("net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality")
Signed-off-by: Mohamad Heib <mohamadh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c