On 6/7/2020 7:59 AM, Amit Cohen wrote: > Implement .get_down_ext_state() as part of ethtool_ops. > Query link down reason from PDDR register and convert it to ethtool > ext_state. > > In case that more information than common ext_state is provided, > fill ext_substate also with the appropriate value. > > Signed-off-by: Amit Cohen <am...@mellanox.com> > Reviewed-by: Petr Machata <pe...@mellanox.com> > Reviewed-by: Jiri Pirko <j...@mellanox.com> Is the firmware smart enough to report ETHTOOL_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED only when using a *KR link mode for instance, or do you need to sanitize that against the supported/advertised mode? -- Florian
- [RFC PATCH net-next 01/10] mlxsw: spectrum_dcb: Rename ml... Amit Cohen
- Re: [RFC PATCH net-next 01/10] mlxsw: spectrum_dcb: ... Florian Fainelli
- [RFC PATCH net-next 04/10] ethtool: Add link extended sta... Amit Cohen
- Re: [RFC PATCH net-next 04/10] ethtool: Add link ext... Andrew Lunn
- Re: [RFC PATCH net-next 04/10] ethtool: Add link ext... Andrew Lunn
- Re: [RFC PATCH net-next 04/10] ethtool: Add link ext... Andrew Lunn
- Re: [RFC PATCH net-next 04/10] ethtool: Add link ext... Andrew Lunn
- Re: [RFC PATCH net-next 04/10] ethtool: Add link ext... Florian Fainelli
- [RFC PATCH net-next 07/10] mlxsw: spectrum_ethtool: Add l... Amit Cohen
- Re: [RFC PATCH net-next 07/10] mlxsw: spectrum_ethto... Florian Fainelli
- [RFC PATCH net-next 05/10] Documentation: networking: eth... Amit Cohen
- Re: [RFC PATCH net-next 05/10] Documentation: networ... Andrew Lunn
- Re: [RFC PATCH net-next 05/10] Documentation: networ... Florian Fainelli
- [RFC PATCH net-next 09/10] selftests: forwarding: forward... Amit Cohen
- Re: [RFC PATCH net-next 09/10] selftests: forwarding... Florian Fainelli
- [RFC PATCH net-next 08/10] selftests: forwarding: ethtool... Amit Cohen