diff options
| author | Sergey Nemov <[email protected]> | 2019-04-24 05:20:51 -0700 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2019-06-14 12:59:16 -0700 |
| commit | d510497b8397ec875edd1a86aaee207822245eee (patch) | |
| tree | 82b6f142cd060a85f306d126692938aaaf4e28c0 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | b83ebf506ba3241ccb61175f432f7ae4fece9111 (diff) | |
i40e: add input validation for virtchnl handlers
Change some data to unsigned int instead of integer when we compare.
Check LUT values in VIRTCHNL_OP_CONFIG_RSS_LUT handler.
Also enhance error/warning messages to print the real values of
I40E_MAX_VF_QUEUES, I40E_MAX_VF_VSI and I40E_DEFAULT_QUEUES_PER_VF
instead of plain text.
Refactor code to comply with 'check first then assign' policy.
Remove duplicate checks for VIRTCHNL_OP_CONFIG_RSS_KEY and
VIRTCHNL_OP_CONFIG_RSS_LUT opcodes in i40e_vc_process_vf_msg(). We have
the very same checks inside the handlers already.
Signed-off-by: Sergey Nemov <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions