diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-01-11 19:04:54 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-03-07 11:47:57 +0300 |
commit | 06cdca014eca3449d8c34bf7c2fcb796a114a0b8 (patch) | |
tree | bdcb6663f120256d4bd7dca803c174591fe56fff /Documentation/ABI/testing | |
parent | 66601a29bb23b61f9676f51c0b4b78b38c601536 (diff) | |
download | linux-06cdca014eca3449d8c34bf7c2fcb796a114a0b8.tar.xz |
leds: trigger: netdev: Display only supported link speed attribute
With the addition of more link speed mode to the netdev trigger, it was
pointed out that there may be a problem with bloating the attribute list
with modes that won't ever be supported by the trigger as the attached
device name doesn't support them.
To clear and address this problem, change the logic where these
additional trigger modes are listed.
Since the netdev trigger REQUIRE a device name to be set, attach to the
device name change function additional logic to parse the supported link
speed modes using ethtool APIs and show only the supported link speed
modes attribute.
Link speed attribute are refreshed on device_name set and on
NETDEV_CHANGE events.
This only apply to the link speed modes and every other mode is still
provided by default.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Link: https://lore.kernel.org/r/20240111160501.1774-1-ansuelsmth@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'Documentation/ABI/testing')
0 files changed, 0 insertions, 0 deletions