]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix calculating the number of queue pairs
authorGrzegorz Szczurek <grzegorzx.szczurek@intel.com>
Fri, 29 Apr 2022 12:40:23 +0000 (14:40 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 9 Jun 2022 15:54:03 +0000 (08:54 -0700)
commitc5a05acaf900c2738e99f95376a19d29e43bab72
tree2a38953fb8dcaf9df50984823efcde394a8af18c
parentc316ad008e384191e3bedb4964122e1870bac5fb
i40e: Fix calculating the number of queue pairs

If ADQ is enabled for a VF, then actual number of queue pair
is a number of currently available traffic classes for this VF.

Without this change the configuration of the Rx/Tx queues
fails with error.

Fixes: 53989f3f88d8 ("i40e: missing input validation on VF message handling by the PF")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Tested-by: Bharathi Sreenivas <bharathi.sreenivas@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c