diff options
author | Sergey Nemov <sergey.nemov@intel.com> | 2019-04-24 05:20:51 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-06-14 12:59:16 -0700 |
commit | d510497b8397ec875edd1a86aaee207822245eee (patch) | |
tree | 82b6f142cd060a85f306d126692938aaaf4e28c0 /crypto/crypto_wq.c | |
parent | b83ebf506ba3241ccb61175f432f7ae4fece9111 (diff) | |
download | linux-d510497b8397ec875edd1a86aaee207822245eee.tar.bz2 |
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 <sergey.nemov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'crypto/crypto_wq.c')
0 files changed, 0 insertions, 0 deletions