ice: fix input validation for virtchnl BW
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: 01530775 ("ice: Support VF queue rate limit and quanta size configuration") Reviewed-by:Jedrzej Jagielski <jedrzej.jagielski@intel.com> Reviewed-by:
Simon Horman <horms@kernel.org> Signed-off-by:
Lukasz Czapnik <lukasz.czapnik@intel.com> Co-developed-by:
Martyna Szapar-Mudlaw <martyna.szapar-mudlaw@linux.intel.com> Signed-off-by:
Martyna Szapar-Mudlaw <martyna.szapar-mudlaw@linux.intel.com> Tested-by:
Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by:
Tony Nguyen <anthony.l.nguyen@intel.com>
Loading
Please sign in to comment