diff options
author | Christian Marangi <[email protected]> | 2023-04-19 23:07:39 +0200 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-05-25 12:07:34 +0100 |
commit | cee4bd16c3195a701be683f7da9e88c6e11acb73 (patch) | |
tree | 4a366d139bf96c1e6d77d3a91b994112157f499d /tools/perf/scripts/python/net_dropmonitor.py | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) |
leds: trigger: netdev: Recheck NETDEV_LED_MODE_LINKUP on dev rename
Dev can be renamed also while up for supported device. We currently
wrongly clear the NETDEV_LED_MODE_LINKUP flag on NETDEV_CHANGENAME
event.
Fix this by rechecking if the carrier is ok on NETDEV_CHANGENAME and
correctly set the NETDEV_LED_MODE_LINKUP bit.
Fixes: 5f820ed52371 ("leds: trigger: netdev: fix handling on interface rename")
Cc: [email protected] # v5.5+
Signed-off-by: Christian Marangi <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions