]> git.karo-electronics.de Git - linux-beck.git/commit
fm10k: use software values when checking for Tx hangs in hot path
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 9 Jun 2016 21:56:05 +0000 (14:56 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 29 Aug 2016 08:31:03 +0000 (01:31 -0700)
commit5b9e4432db038eefcafe2be468e3adaf2edbbe91
treebf647b3bb1a6f87f5dcf918519ffe349ef9f5549
parente59a393d089d08a4622de07f941dd3629fcaec6a
fm10k: use software values when checking for Tx hangs in hot path

A previous patch added support to check for hardware Tx pending in the
fm10k_down routine. This support was intended to ensure that we
accurately check what the hardware state is. However, checking for Tx
hangs in this manor during the hotpath results in a large performance
hit. Avoid this by making the hotpath check use the SW counters instead.

Fixes: a0f53cf49cb0 ("fm10k: use actual hardware registers when checking for pending Tx", 2016-06-08)
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k.h
drivers/net/ethernet/intel/fm10k/fm10k_main.c
drivers/net/ethernet/intel/fm10k/fm10k_pci.c