]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:29 +0000 (22:04 -0800)
commit0e6291c00ba3c649440372f88958b69eb5319f45
tree1684b49f9206d0bb642eca5c18c3aedd4b46a9ff
parentb8e0fa37a0a4f189faa0451fbf80d6675a2b4454
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>
Orabug: 25394529
(cherry picked from commit 5b9e4432db038eefcafe2be468e3adaf2edbbe91)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k.h
drivers/net/ethernet/intel/fm10k/fm10k_main.c
drivers/net/ethernet/intel/fm10k/fm10k_pci.c