ice: Change max MSI-x vector_id check in cfg_irq_map
authorBrett Creeley <brett.creeley@intel.com>
Wed, 6 Nov 2019 10:05:34 +0000 (02:05 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 8 Nov 2019 20:02:56 +0000 (12:02 -0800)
commitb791cdd5c78c74a165ee8da69d6c8ae683d17c38
tree54aa347bf468df3c51e332ba836d3aa6e6d45342
parentec4f5a436bdf0e5453ad15c4f34a59b9b675ff48
ice: Change max MSI-x vector_id check in cfg_irq_map

Currently we check to make sure the vector_id passed down from iavf
is less than or equal to pf->hw.func_caps.common_caps.num_msix_vectors.
This is incorrect because the vector_id is always 0-based and never
greater than or equal to the ICE_MAX_INTR_PER_VF. Fix this by checking
to make sure the vector_id is less than the max allowed interrupts per
VF (ICE_MAX_INTR_PER_VF).

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c