]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/i40evf: Fix and refactor dynamic ITR code
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 10 Jun 2015 17:42:07 +0000 (13:42 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 23 Jul 2015 12:13:08 +0000 (05:13 -0700)
commitc54e7094e767caed6a4e06cea42394ac65dfe5c9
tree9d0349c4e94101c60f9928a96fa7c6ec4e6c64b1
parent12aca0fb514a6bc00e3a991f95bc003e8a33d128
i40e/i40evf: Fix and refactor dynamic ITR code

This patch changes the switch statement for dynamic interrupt throttling
and adds a default case. With this patch, we check the latency setting
instead of the current ITR settings and the included refactor improves
performance.

Without this patch, the ITR setting would never change dynamically, and
there was no default.

Change-ID: Idb5a8a14c7109ec47c90f6e94bd43baa17d7ee37
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c