]> git.baikalelectronics.ru Git - kernel.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)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 8 Aug 2019 20:01:18 +0000 (13:01 -0700)
commit0c8e3164cbe9912b91936f323c983016f669125f
tree48bcecbb7de0c8040dad74bdf491891d3618f2ed
parent23081c4c07a7f9f2d2db275d0b2fc13410e4594f
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: a6c0c80b2280 ("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