OSDN Git Service

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)
commitd24ca6c0a76b52de0d675ef107fef721b6b27b0c
treee4b228643701d8ddd75115a48aae6dcb0058e8e0
parent7952d7edf30beedbfa67414c31eab18584710fba
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