]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Fix limit of total number of queues to active queues of VF
authorKaren Sornek <karen.sornek@intel.com>
Wed, 1 Sep 2021 07:21:46 +0000 (09:21 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 4 Jan 2022 22:12:52 +0000 (14:12 -0800)
commitb34c68a0f2daaa009aed6e27325a0069d7a3e44e
treef4936702e57e9ab4106bc62ceff32d81dce1df65
parentf8a814fa1c3e1cb483d5f02c30e1ded22bdb460e
iavf: Fix limit of total number of queues to active queues of VF

In the absence of this validation, if the user requests to
configure queues more than the enabled queues, it results in
sending the requested number of queues to the kernel stack
(due to the asynchronous nature of VF response), in which
case the stack might pick a queue to transmit that is not
enabled and result in Tx hang. Fix this bug by
limiting the total number of queues allocated for VF to
active queues of VF.

Fixes: e3a3d208c68d ("i40evf: add ndo_setup_tc callback to i40evf")
Signed-off-by: Ashwin Vijayavel <ashwin.vijayavel@intel.com>
Signed-off-by: Karen Sornek <karen.sornek@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c