Skip to content

Commit

Permalink
i40e: allow one more vector for VFs
Browse files Browse the repository at this point in the history
The number of vectors per VF as reported by the hardware does not
include vector 0, so we need to account for this when checking to
see if the VF is configuring a valid vector.

Change-Id: I051d8bebae8f4722239f5a3fa5e1de4cf0f4e817
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Mitch Williams authored and Jeff Kirsher committed Dec 6, 2013
1 parent fe31070 commit 54692b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static inline bool i40e_vc_isvalid_vector_id(struct i40e_vf *vf, u8 vector_id)
{
struct i40e_pf *pf = vf->pf;

return vector_id < pf->hw.func_caps.num_msix_vectors_vf;
return vector_id <= pf->hw.func_caps.num_msix_vectors_vf;
}

/***********************vf resource mgmt routines*****************/
Expand Down

0 comments on commit 54692b4

Please sign in to comment.