diff options
| author | Weihang Li <[email protected]> | 2019-02-02 22:39:30 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-02-02 08:24:08 -0800 |
| commit | b671b723e0d235b516dc33c163e6296df9b4f0ca (patch) | |
| tree | 2e126f1cff25e2b444094c6c834f52e0d2a73103 /tools/perf/scripts/python/sctop.py | |
| parent | 8ca754b13f3c3b99d946665385b3b76e66aab96d (diff) | |
net: hns3: add hclge_cmd_check_retval() to parse comman's return value
For simplifying the code, this patch adds hclge_cmd_check_retval() to
check the return value of the command.
Also, according the IMP's description, when there are several descriptors
in a command, then the IMP will save the return value on the last
description, so hclge_cmd_check_retval() just check the last one for this
case.
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions