]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_ethtool: Extract a helper to get Ethernet attributes
authorPetr Machata <petrm@nvidia.com>
Sun, 13 Sep 2020 15:46:05 +0000 (18:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 21:37:30 +0000 (14:37 -0700)
commit1044b805c879b4b752b2ae2db3d78959bd09ca81
treee4b228643701d8ddd75115a48aae6dcb0058e8e0
parenta728b41e8790dab98a705833b346f996731e8b3a
mlxsw: spectrum_ethtool: Extract a helper to get Ethernet attributes

In order to allow reusing the logic, extract from
mlxsw_sp_port_get_link_ksettings() the code to obtain Ethernet protocol
attributes, mlxsw_sp_port_ptys_query().

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c