net/mlx5e: ethtool, Fix analysis of speed setting
authorAya Levin <ayal@mellanox.com>
Sun, 1 Dec 2019 14:33:55 +0000 (16:33 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 5 Dec 2019 21:02:12 +0000 (13:02 -0800)
commit3d7cadae51f1b7f28358e36d0a1ce3f0ae2eee60
tree3854682ddbecb5dbfde6460261d151f1fd5083e9
parent6d485e5e555436d2c13accdb10807328c4158a17
net/mlx5e: ethtool, Fix analysis of speed setting

When setting speed to 100G via ethtool (AN is set to off), only 25G*4 is
configured while the user, who has an advanced HW which supports
extended PTYS, expects also 50G*2 to be configured.
With this patch, when extended PTYS mode is available, configure
PTYS via extended fields.

Fixes: 4b95840a6ced ("net/mlx5e: Fix matching of speed to PRM link modes")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c