aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-03 16:26:52 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-14 17:57:13 -0400
commit97c71e3ccf70291249a564566a63e23dcaa9eee7 (patch)
tree4fecab1b125dbbf95c1d8e39060c436e0b4b2604 /drivers/net
parentf4e25f6e368492198d49ac6b2e05a25866fe3e8e (diff)
fm10k: Remove redundant rx_errors in ethtool
Output of ethtool was reporting 2 rx_errors entries. This change removes one of the redundant entries. 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')
-rw-r--r--drivers/net/ethernet/intel/fm10k/fm10k.h3
-rw-r--r--drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c3
-rw-r--r--drivers/net/ethernet/intel/fm10k/fm10k_pci.c5
3 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k.h b/drivers/net/ethernet/intel/fm10k/fm10k.h
index 59edfd4446cd..65e70016abfb 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k.h
+++ b/drivers/net/ethernet/intel/fm10k/fm10k.h
@@ -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,
@@ -266,7 +266,6 @@ struct fm10k_intfc {
266 u64 tx_csum_errors; 266 u64 tx_csum_errors;
267 u64 alloc_failed; 267 u64 alloc_failed;
268 u64 rx_csum_errors; 268 u64 rx_csum_errors;
269 u64 rx_errors;
270 269
271 u64 tx_bytes_nic; 270 u64 tx_bytes_nic;
272 u64 tx_packets_nic; 271 u64 tx_packets_nic;
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
index 33b6106c764b..7dd3c9d5e476 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.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,
@@ -63,7 +63,6 @@ static const struct fm10k_stats fm10k_gstrings_stats[] = {
63 FM10K_STAT("tx_csum_errors", tx_csum_errors), 63 FM10K_STAT("tx_csum_errors", tx_csum_errors),
64 FM10K_STAT("rx_alloc_failed", alloc_failed), 64 FM10K_STAT("rx_alloc_failed", alloc_failed),
65 FM10K_STAT("rx_csum_errors", rx_csum_errors), 65 FM10K_STAT("rx_csum_errors", rx_csum_errors),
66 FM10K_STAT("rx_errors", rx_errors),
67 66
68 FM10K_STAT("tx_packets_nic", tx_packets_nic), 67 FM10K_STAT("tx_packets_nic", tx_packets_nic),
69 FM10K_STAT("tx_bytes_nic", tx_bytes_nic), 68 FM10K_STAT("tx_bytes_nic", tx_bytes_nic),
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
index 8978d55a1c51..6fc996579587 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_pci.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,
@@ -357,7 +357,6 @@ void fm10k_update_stats(struct fm10k_intfc *interface)
357 net_stats->rx_packets = pkts; 357 net_stats->rx_packets = pkts;
358 interface->alloc_failed = alloc_failed; 358 interface->alloc_failed = alloc_failed;
359 interface->rx_csum_errors = rx_csum_errors; 359 interface->rx_csum_errors = rx_csum_errors;
360 interface->rx_errors = rx_errors;
361 360
362 hw->mac.ops.update_hw_stats(hw, &interface->stats); 361 hw->mac.ops.update_hw_stats(hw, &interface->stats);
363 362
@@ -378,7 +377,7 @@ void fm10k_update_stats(struct fm10k_intfc *interface)
378 interface->rx_drops_nic = rx_drops_nic; 377 interface->rx_drops_nic = rx_drops_nic;
379 378
380 /* Fill out the OS statistics structure */ 379 /* Fill out the OS statistics structure */
381 net_stats->rx_errors = interface->stats.xec.count; 380 net_stats->rx_errors = rx_errors;
382 net_stats->rx_dropped = interface->stats.nodesc_drop.count; 381 net_stats->rx_dropped = interface->stats.nodesc_drop.count;
383} 382}
384 383