]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: Corrected an error in Tx statistics
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Apr 2015 20:26:51 +0000 (13:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 14 Apr 2015 21:42:27 +0000 (14:42 -0700)
commit462d842cde8052c71ae05304d93fc07b87d93152
treef9ab3c4c466379399a3bc95510cafbfd2f9fc7e6
parent27505b0f5ca596e9d94d38e7fe3df9c56ddfa80f
fm10k: Corrected an error in Tx statistics

The function collecting Tx statistics was actually using values from the RX
ring. Thus, Tx and Rx statistics values reported by "ifconfig" will
return identical values. This change corrects this error and the Tx
statistics is now reading from the Tx ring.

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Acked-by: Matthew Vick <matthew.vick@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c