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)
commitde32e3efd58e9e6754e911618ac7941979ceb6b1
tree9d0349c4e94101c60f9928a96fa7c6ec4e6c64b1
parent6fb469023cd995d7be5ab3bf12b79387710382ff
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