]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbeed27c11aa073b8fb8c6c4b057dfd635cdce921
tree3854682ddbecb5dbfde6460261d151f1fd5083e9
parent7744eee04c6fe01028964d19dbf7ea4a8738e95a
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: 8ea6c2029ea7 ("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