aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2020-06-20 22:35:42 +0200
committerDavid S. Miller <[email protected]>2020-06-22 16:26:01 -0700
commitbd869245a3dcca1c8a77dfade7d3dc69a68365df (patch)
tree01a196cd89ea629ca56643d907765318c0bf9586 /tools/perf/scripts/python/stat-cpi.py
parent8878adba6ab5414c36b693e09fe46c4416072cc7 (diff)
net: core: try to runtime-resume detached device in __dev_open
A netdevice may be marked as detached because the parent is runtime-suspended and not accessible whilst interface or link is down. An example are PCI network devices that go into PCI D3hot, see e.g. __igc_shutdown() or rtl8169_net_suspend(). If netdevice is down and marked as detached we can only open it if we runtime-resume it before __dev_open() calls netif_device_present(). Therefore, if netdevice is detached, try to runtime-resume the parent and only return with an error if it's still detached. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions