]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerSasha Levin <sashal@kernel.org>
Sun, 25 Aug 2019 14:10:38 +0000 (10:10 -0400)
commitc02f176650560dceb79e3939a88fd12b0fde9e91
tree69b129a9453a8883a1527a59cc3160db1229745f
parentbeb811bd390d1518d391699d8b0087394da530bd
net/mlx5e: ethtool, Avoid setting speed to 56GBASE when autoneg off

[ Upstream commit 5faf5b70c51dd9c9905bf8209e33cbd867486607 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c