aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorGrygorii Strashko <[email protected]>2016-06-24 21:23:44 +0300
committerDavid S. Miller <[email protected]>2016-06-28 08:57:18 -0400
commit7898b1daf055537a8f661828272defecdee49f27 (patch)
tree0a1a0d39fb3383e817560985d753e7bb287804c3 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent74556f516702331444b3c2d900a6a1d1fc9fc4cd (diff)
drivers: net: cpsw: ethtool: fix accessing to suspended device
The CPSW might be suspended by RPM if all ethX interfaces are down, but it still could be accesible through ethtool interfce. In this case ethtool operations, requiring registers access, will cause L3 errors and CPSW crash. ethtool callbcaks which need to access CPSW registers now: .set_coalesce(), .get_ethtool_stats(), .set_pauseparam(), .get_regs() Hence, fix it by adding .begin()/.complete() ethtool callbacks, which will be called before/after each ethtool operation runs, and do CPSW RPM handling in these callbacks. That way CPSW will be active while handling ethtool requests. Signed-off-by: Grygorii Strashko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions