Message ID | 20190329220840.51187-8-alice.michael@intel.com |
---|---|
State | Accepted |
Delegated to: | Jeff Kirsher |
Headers | show |
Series | [next,S4,01/11] i40e: VF's promiscuous attribute is not kept | expand |
> -----Original Message----- > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On > Behalf Of Alice Michael > Sent: Friday, March 29, 2019 3:09 PM > To: Michael, Alice <alice.michael@intel.com>; intel-wired- > lan@lists.osuosl.org > Cc: Siwik, Grzegorz <grzegorz.siwik@intel.com> > Subject: [Intel-wired-lan] [next PATCH S4 08/11] i40e: Wrong truncation from > u16 to u8 > > From: Grzegorz Siwik <grzegorz.siwik@intel.com> > > In this patch fixed wrong truncation method from u16 to u8 during validation. > > It was changed by changing u8 to u32 parameter in method declaration and > arguments were changed to u32. > > Signed-off-by: Grzegorz Siwik <grzegorz.siwik@intel.com> > --- > drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c index 25490cfb06fc..d0e3677b7dc8 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c @@ -196,7 +196,7 @@ static inline bool i40e_vc_isvalid_queue_id(struct i40e_vf *vf, u16 vsi_id, * * check for the valid vector id **/ -static inline bool i40e_vc_isvalid_vector_id(struct i40e_vf *vf, u8 vector_id) +static inline bool i40e_vc_isvalid_vector_id(struct i40e_vf *vf, u32 vector_id) { struct i40e_pf *pf = vf->pf;