diff options
author | Jacob Keller <[email protected]> | 2023-02-22 09:09:18 -0800 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2023-03-13 11:06:06 -0700 |
commit | 4508bf02bf8a3de8fb65869f40dfdef74dc1b339 (patch) | |
tree | 05fb3f5e3568b32477833675a4e2ba6213052d5f /tools/perf/scripts/python/task-analyzer.py | |
parent | afc24d6584fbd246d98c0feb464b94da67661e3e (diff) |
ice: print message if ice_mbx_vf_state_handler returns an error
If ice_mbx_vf_state_handler() returns an error, the ice_is_malicious_vf()
function just exits without printing anything.
Instead, use dev_warn_ratelimited to print a warning that we were unable to
check the status for this VF. The _ratelimited variant is used to avoid
potentially spamming the log if this function is failing consistently for
every single mailbox message.
Also we can drop the "goto" as it simply skips over a report_malvf check.
That variable should always be false if ice_mbx_vf_state_handler returns
non-zero.
Signed-off-by: Jacob Keller <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Tested-by: Marek Szlosek <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions