diff options
| author | Florian Fainelli <[email protected]> | 2022-05-12 02:17:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-05-12 17:01:36 +0000 |
| commit | b7be130c5d52e5224ac7d89568737b37b4c4b785 (patch) | |
| tree | e0a03f6b876065edee23644ed24f71717f97c92c /tools/perf/scripts/python/sched-migration.py | |
| parent | mlxsw: Avoid warning during ip6gre device removal (diff) | |
| download | kernel-b7be130c5d52e5224ac7d89568737b37b4c4b785.tar.gz kernel-b7be130c5d52e5224ac7d89568737b37b4c4b785.zip | |
net: dsa: bcm_sf2: Fix Wake-on-LAN with mac_link_down()
After commit 2d1f90f9ba83 ("net: dsa/bcm_sf2: fix incorrect usage of
state->link") the interface suspend path would call our mac_link_down()
call back which would forcibly set the link down, thus preventing
Wake-on-LAN packets from reaching our management port.
Fix this by looking at whether the port is enabled for Wake-on-LAN and
not clearing the link status in that case to let packets go through.
Fixes: 2d1f90f9ba83 ("net: dsa/bcm_sf2: fix incorrect usage of state->link")
Signed-off-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
