> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Martyna Szapar-Mudlaw
> Sent: Tuesday, March 4, 2025 12:09 PM
> To: [email protected]
> Cc: [email protected]; Czapnik, Lukasz <[email protected]>;
> Jagielski, Jedrzej <[email protected]>; Simon Horman
> <[email protected]>; Martyna Szapar-Mudlaw <martyna.szapar-
> [email protected]>
> Subject: [Intel-wired-lan] [iwl-net v3 4/5] ice: fix input validation for 
> virtchnl BW
> 
> From: Lukasz Czapnik <[email protected]>
> 
> Add missing validation of tc and queue id values sent by a VF in
> ice_vc_cfg_q_bw().
> Additionally fixed logged value in the warning message, where max_tx_rate was
> incorrectly referenced instead of min_tx_rate.
> Also correct error handling in this function by properly exiting when invalid
> configuration is detected.
> 
> Fixes: 015307754a19 ("ice: Support VF queue rate limit and quanta size
> configuration")
> Reviewed-by: Jedrzej Jagielski <[email protected]>
> Reviewed-by: Simon Horman <[email protected]>
> Signed-off-by: Lukasz Czapnik <[email protected]>
> Co-developed-by: Martyna Szapar-Mudlaw <martyna.szapar-
> [email protected]>
> Signed-off-by: Martyna Szapar-Mudlaw <martyna.szapar-
> [email protected]>
> ---
>  drivers/net/ethernet/intel/ice/ice_virtchnl.c | 24 ++++++++++++++++---
>  1 file changed, 21 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/ice/ice_virtchnl.c
> b/drivers/net/ethernet/intel/ice/ice_virtchnl.c
> index adb1bf12542f..824ef849b0ea 100644
> --- a/drivers/net/ethernet/intel/ice/ice_virtchnl.c
> +++ b/drivers/net/ethernet/intel/ice/ice_virtchnl.c
> @@ -1865,15 +1865,33 @@ static int ice_vc_cfg_q_bw(struct ice_vf *vf, u8

Tested-by: Rafal Romanowski <[email protected]>


Reply via email to