OSDN Git Service

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)
commit6a897372417e8c9e0e03c4c438fc1f48dd096ea9
treee20eb40fdb82b187be65e0fd79a65af9ef3dd2c8
parent2736d94f351b92749c07efef01f7c10548e39ad8
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