]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: ethtool, Add ethtool support for 50Gbps per lane link modes
authorAya Levin <ayal@mellanox.com>
Tue, 22 Jan 2019 08:29:57 +0000 (10:29 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 19 Feb 2019 22:15:02 +0000 (14:15 -0800)
commite81c40c602f6d2fc74023abd5ee02e6d3f789110
treee20eb40fdb82b187be65e0fd79a65af9ef3dd2c8
parent4287324d6ad9fccb92344204770d178277f57ce7
net/mlx5: ethtool, Add ethtool support for 50Gbps per lane link modes

In previous patch, driver added new speed modes: 50Gbps per lane support
for 50G/100G/200G.  This patch modifies mlx5e_get_link_ksettings and
mlx5e_set_link_ksettings to set and get these link modes via ethtool.
In order to do so, added mapping of new HW bits to ethtool bitmap and
enforce mutual exclusion between extended link modes and previously
defined 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