]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'provide-KAPI-for-SQI'
authorDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 00:18:00 +0000 (17:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 00:18:00 +0000 (17:18 -0700)
commite67ff279dbc57fbacf9ebd2022b57f9f8103655d
treeff7397ca188b6e6ffd74a1c272aaffcc3d09fa51
parent4a1286c3d96743da193734d5179e10941c8b988b
parentc1b4e56a1c8b5151fa82f1d822cc3bbfd5ddfd39
Merge branch 'provide-KAPI-for-SQI'

Oleksij Rempel says:

====================
provide KAPI for SQI

This patches are extending ethtool netlink interface to export Signal
Quality Index (SQI). SQI provided by 100Base-T1 PHYs and can be used for
cable diagnostic. Compared to a typical cable tests, this value can be
only used after link is established.

changes v3:
- rename __ethtool_get_sqi* to linkstate_get_sqi*. And move this
  functions to the net/ethtool/linkstate.c
- protect linkstate_get_sqi* with locking

changes v2:
- use u32 instead of u8 for SQI
- add SQI_MAX field and callbacks
- some style fixes in the rst.
- do not convert index to shifted index.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>