diff options
author | Brett Creeley <brett.creeley@intel.com> | 2019-11-13 20:28:17 +0100 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2020-01-09 18:21:40 +0100 |
commit | d9d6a9aed3f66f8ce5fa3ca6ca26007d75032296 (patch) | |
tree | 4f67fd4a49b3550ac7dd2c8fe8355fdd12b6aae4 /drivers/auxdisplay/Kconfig | |
parent | tipc: fix wrong connect() return code (diff) | |
download | linux-d9d6a9aed3f66f8ce5fa3ca6ca26007d75032296.tar.xz linux-d9d6a9aed3f66f8ce5fa3ca6ca26007d75032296.zip |
i40e: Fix virtchnl_queue_select bitmap validation
Currently in i40e_vc_disable_queues_msg() we are incorrectly
validating the virtchnl queue select bitmaps. The
virtchnl_queue_select rx_queues and tx_queue bitmap is being
compared against ICE_MAX_VF_QUEUES, but the problem is that
these bitmaps can have a value greater than I40E_MAX_VF_QUEUES.
Fix this by comparing the bitmaps against BIT(I40E_MAX_VF_QUEUES).
Also, add the function i40e_vc_validate_vqs_bitmaps() that checks to see
if both virtchnl_queue_select bitmaps are empty along with checking that
the bitmaps only have valid bits set. This function can then be used in
both the queue enable and disable flows.
Suggested-by: Arkady Gilinksky <arkady.gilinsky@harmonicinc.com>
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/auxdisplay/Kconfig')
0 files changed, 0 insertions, 0 deletions