]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Queues are reserved despite "Invalid argument" error
authorAdam Ludkiewicz <adam.ludkiewicz@intel.com>
Wed, 6 Feb 2019 23:08:15 +0000 (15:08 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Apr 2019 22:09:29 +0000 (15:09 -0700)
commit32a4c4ecb11e79094c22c5299e1ec423623ab6fd
treed37e370e70ce37a2c1c369b75d52d5c33a52d08e
parentbde4a509758474351467d147a2c56061ebacb7e9
i40e: Queues are reserved despite "Invalid argument" error

Added a new local variable in the i40e_setup_tc function named
old_queue_pairs so num_queue_pairs can be restored to the correct
value in case configuring queue channels fails. Additionally, moved
the exit label in the i40e_setup_tc function so the if (need_reset)
block can be executed.
Also, fixed data packing in the i40e_setup_tc function.

Signed-off-by: Adam Ludkiewicz <adam.ludkiewicz@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c