ice: fix the vsi_id mask to be 10 bit for set_rss_lut
authorKiran Patil <kiran.patil@intel.com>
Thu, 30 Jul 2020 00:19:11 +0000 (17:19 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Sat, 1 Aug 2020 15:20:10 +0000 (08:20 -0700)
commitf07d134d3772d8b9546e3eb3cf4d13848d3af6e1
tree769de4bac63bc40e62d89ab29b1351c79d2029b6
parent585cdabdfdb73b4434fcb100f5adf588dd777f2e
ice: fix the vsi_id mask to be 10 bit for set_rss_lut

set_rss_lut can fail due to incorrect vsi_id mask. vsi_id is 10 bit
but mask was 0x1FF whereas it should be 0x3FF.

For vsi_num >= 512, FW set_rss_lut can fail with return code
EACCESS (VSI ownership issue) because software was providing
incorrect vsi_num (dropping 10th bit due to incorrect mask) for
set_rss_lut admin command

Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h