]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Restore interrupt throttle settings after VSI rebuild
authorMichal Swiatkowski <michal.swiatkowski@intel.com>
Thu, 12 Dec 2019 11:12:58 +0000 (03:12 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 4 Jan 2020 00:08:33 +0000 (16:08 -0800)
commitac78f7aec5e55a48a736eb98e6f62238fe24740d
treed92dba6a8db51d035e3238f8b5f9de0e85d1e6f0
parentbf5031fcef1eaff588b20b20fa26f9fafc0fe0c1
ice: Restore interrupt throttle settings after VSI rebuild

After each rebuild driver deallocates q_vectors, so the interrupt
throttle rate (ITR) settings get lost.

Create a function to save and restore ITR for each queue. If a user
increases the number of queues, restore all the previous queue
settings for each existing queue, and the additional queues will
get the default setting.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_txrx.h