diff options
author | Shalom Toledo | 2019-07-04 09:07:37 +0200 |
---|---|---|
committer | David S. Miller | 2019-07-06 00:28:57 +0200 |
commit | 4ae5cc42d347ff349ab3dd7c1981c93803788956 (patch) | |
tree | 516f9518e88b2c132a02d4a648e4e83574be010a /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | mlxsw: spectrum_ptp: Set the PTP shaper parameters (diff) | |
download | kernel-qcow2-linux-4ae5cc42d347ff349ab3dd7c1981c93803788956.tar.gz kernel-qcow2-linux-4ae5cc42d347ff349ab3dd7c1981c93803788956.tar.xz kernel-qcow2-linux-4ae5cc42d347ff349ab3dd7c1981c93803788956.zip |
mlxsw: spectrum: Add new operation for getting the port's speed
New operation for getting the port's speed as part of port-type-speed
operations.
Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index 7f8427c1a997..c21cd1a425c7 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -279,6 +279,7 @@ struct mlxsw_sp_port_type_speed_ops { struct ethtool_link_ksettings *cmd); void (*from_ptys_link)(struct mlxsw_sp *mlxsw_sp, u32 ptys_eth_proto, unsigned long *mode); + u32 (*from_ptys_speed)(struct mlxsw_sp *mlxsw_sp, u32 ptys_eth_proto); void (*from_ptys_speed_duplex)(struct mlxsw_sp *mlxsw_sp, bool carrier_ok, u32 ptys_eth_proto, struct ethtool_link_ksettings *cmd); |