linux_dsm_epyc7002/drivers/net/ethernet/intel
Brett Creeley d9d6a9aed3 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>
2020-01-09 09:21:40 -08:00
..
e1000 pci-v5.5-changes 2019-12-03 13:58:22 -08:00
e1000e net: ethernet: intel: Demote MTU change prints to debug 2019-11-07 20:01:14 -08:00
fm10k treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
i40e i40e: Fix virtchnl_queue_select bitmap validation 2020-01-09 09:21:40 -08:00
iavf treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
ice treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
igb treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
igbvf net: ethernet: intel: Demote MTU change prints to debug 2019-11-07 20:01:14 -08:00
igc treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
ixgb treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
ixgbe net/ixgbe: Fix concurrency issues between config flow and XSK 2019-12-19 16:20:49 +01:00
ixgbevf treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
e100.c intel: correct return from set features callback 2019-03-19 14:18:49 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00