mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 11:06:03 +02:00
ice: stop truncating queue ids when checking
Queue IDs can be up to 4096, fix invalid check to stop
truncating IDs to 8 bits.
Fixes: bf93bf791c ("ice: introduce ice_virtchnl.c and ice_virtchnl.h")
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jan Glaza <jan.glaza@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>
This commit is contained in:
parent
db5e8ea155
commit
f91d0efcc3
|
|
@ -562,7 +562,7 @@ bool ice_vc_isvalid_vsi_id(struct ice_vf *vf, u16 vsi_id)
|
|||
*
|
||||
* check for the valid queue ID
|
||||
*/
|
||||
static bool ice_vc_isvalid_q_id(struct ice_vsi *vsi, u8 qid)
|
||||
static bool ice_vc_isvalid_q_id(struct ice_vsi *vsi, u16 qid)
|
||||
{
|
||||
/* allocated Tx and Rx queues should be always equal for VF VSI */
|
||||
return qid < vsi->alloc_txq;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user