]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Remove separate functions gathering XOFF Rx stats
authorNeerav Parikh <neerav.parikh@intel.com>
Fri, 6 Nov 2015 23:26:09 +0000 (15:26 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Dec 2015 10:23:36 +0000 (02:23 -0800)
commitbeeb85fbbd93525cf998dd452426acdba39efb4e
tree084c932b2bdb9eef20fc9be7d84ac1d8f2aa9c18
parenta2328b895cc2251eda3e4b89c98cad07228aa701
i40e: Remove separate functions gathering XOFF Rx stats

The separate functions to gather Flow control Rx XOFF stats was to
determine if the Tx for a queue was paused due to Link Flow Control(LFC)
or Priority Flow Control(PFC).

But, with recent change in the i40e driver the logic for checking th Tx
hang has been removed and these functions don't do anything meaningful.
Hence, there is no need to keep these separate functions to gather Rx
XOFF stats for LFC or PFC.

This patch removes these functions and moves the stat collection for
XOFF Rx to the i40e_update_pf_stats() that collects all the PF stats.

Change-ID: Iec1452dac3a6766f0d968e754cb407530d7c60cd
Signed-off-by: Neerav Parikh <neerav.parikh@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_main.c