aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-03 16:26:51 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-14 17:42:27 -0400
commitf4e25f6e368492198d49ac6b2e05a25866fe3e8e (patch)
treef9ab3c4c466379399a3bc95510cafbfd2f9fc7e6 /drivers/net/ethernet/intel
parent87ffabb1f055e14e7d171c6599539a154d647904 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/intel')
-rw-r--r--drivers/net/ethernet/intel/fm10k/fm10k_netdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
index d5b303dad95e..a7db5e20e1f7 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
@@ -1,5 +1,5 @@
1/* Intel Ethernet Switch Host Interface Driver 1/* Intel Ethernet Switch Host Interface Driver
2 * Copyright(c) 2013 - 2014 Intel Corporation. 2 * Copyright(c) 2013 - 2015 Intel Corporation.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -1126,7 +1126,7 @@ static struct rtnl_link_stats64 *fm10k_get_stats64(struct net_device *netdev,
1126 } 1126 }
1127 1127
1128 for (i = 0; i < interface->num_tx_queues; i++) { 1128 for (i = 0; i < interface->num_tx_queues; i++) {
1129 ring = ACCESS_ONCE(interface->rx_ring[i]); 1129 ring = ACCESS_ONCE(interface->tx_ring[i]);
1130 1130
1131 if (!ring) 1131 if (!ring)
1132 continue; 1132 continue;