]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: refactor IRQ enable function
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Mon, 28 Sep 2015 18:16:51 +0000 (14:16 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:33:00 +0000 (08:33 -0800)
commit93b36fce1e7fa9350d41903e0651f3cc5b4909dd
treeff7f47ef82eb4d326f61314afc991e9eaf0da3b8
parent960aa645d7191b306d6b3ec04b18c1e7c3cbde30
i40e/i40evf: refactor IRQ enable function

Orabug: 22342532

This change moves a multi-line register setting into a function
which simplifies reading the flow of the enable function.

This also fixes a bug where the enable function was enabling
the interrupt twice while trying to update the two interrupt
throttle rate thresholds for Rx and Tx.

Change-ID: Ie308f9d0d48540204590cb9d7a5a7b1196f959bb
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 8f5e39ce9214888464d34ef7949e56bdc999b46c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c