i40e: move enabling icr0 into i40e_update_enable_itr
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 14 Jul 2017 13:10:09 +0000 (09:10 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 27 Aug 2017 23:07:13 +0000 (16:07 -0700)
commit9254c0e34e4253c41fdcd4670b754506ce20d3eb
treeb996aeaf90a4fcec34362993a33c936abcbdac7a
parentba4460d45a6ec04e29e55e6c97edc0e842c18999
i40e: move enabling icr0 into i40e_update_enable_itr

If we don't have MSI-X enabled, we handle interrupts on all icr0. This
is a special case, so let's move the conditional into
i40e_update_enable_itr() in order to make i40e_napi_poll easier to
read about.

Signed-off-by: Jacob Keller <jacob.e.keller@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_txrx.c