[Intel-wired-lan] [PATCH S32 08/15] ice: Change max MSI-x vector_id check in cfg_irq_map
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Nov 1 16:43:36 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Friday, October 25, 2019 7:35 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S32 08/15] ice: Change max MSI-x
> vector_id check in cfg_irq_map
>
> From: Brett Creeley <brett.creeley at intel.com>
>
> 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 at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list