i40e: check queue pairs num in config queues handler
authorSergey Nemov <sergey.nemov@intel.com>
Wed, 19 Dec 2018 14:45:40 +0000 (06:45 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 22 Jan 2019 15:51:33 +0000 (07:51 -0800)
commit3f8af41262697a4d6742f030fbe0ceb9e1a048a6
treee37253f7d9b266e0ae969671092d552fc5aaaaa6
parent9b0732d9ed6f80d712119fa32ff25ae9b09d481e
i40e: check queue pairs num in config queues handler

Check if num_queue_pairs number requested by VF is less than
maximum possible value in VIRTCHNL_OP_CONFIG_VSI_QUEUES handler.

Also check if local_vf_id >= 0 in common handler since it is of
int type and can potentially be negative.

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>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c