diff options
author | Eugene Crosser <[email protected]> | 2014-09-02 08:20:17 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-09-02 13:54:06 -0700 |
commit | 511c24456ad19d51fcdbc5eda9df7be98c20e6b0 (patch) | |
tree | 89d36bcc3fa41515c01c77b85a92700205b7d98e /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | c24f33796830aa42c496c2b2529ce6d51533af84 (diff) |
qeth: don't query for info if hardware not ready.
When qeth device is queried for ethtool data, hardware operation
is performed to extract the necessary information from the card.
If the card is not online at the moment (e.g. it is undergoing
recovery), this operation produces undesired effects like
temporarily freezing the system. This patch prevents execution
of the hardware query operation when the card is not online.
In such case, ioctl() operation returns error with errno ENODEV.
Reviewed-by: Ursula Braun <[email protected]>
Signed-off-by: Eugene Crosser <[email protected]>
Signed-off-by: Frank Blaschka <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions