fm10k: Remove redundant rx_errors in ethtool
[deliverable/linux.git] / drivers / net / ethernet / intel / fm10k / fm10k_pci.c
index 4f5892cc32d70c15b7911e0975eb6f39a5f5b6fb..6fc9965795877b83bb11af0c54ee39642c9580d3 100644 (file)
@@ -1,5 +1,5 @@
 /* Intel Ethernet Switch Host Interface Driver
- * Copyright(c) 2013 - 2014 Intel Corporation.
+ * Copyright(c) 2013 - 2015 Intel Corporation.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -357,7 +357,6 @@ void fm10k_update_stats(struct fm10k_intfc *interface)
        net_stats->rx_packets = pkts;
        interface->alloc_failed = alloc_failed;
        interface->rx_csum_errors = rx_csum_errors;
-       interface->rx_errors = rx_errors;
 
        hw->mac.ops.update_hw_stats(hw, &interface->stats);
 
@@ -378,7 +377,7 @@ void fm10k_update_stats(struct fm10k_intfc *interface)
        interface->rx_drops_nic = rx_drops_nic;
 
        /* Fill out the OS statistics structure */
-       net_stats->rx_errors = interface->stats.xec.count;
+       net_stats->rx_errors = rx_errors;
        net_stats->rx_dropped = interface->stats.nodesc_drop.count;
 }
 
@@ -648,7 +647,7 @@ static void fm10k_configure_rx_ring(struct fm10k_intfc *interface,
        /* Configure the Rx buffer size for one buff without split */
        srrctl |= FM10K_RX_BUFSZ >> FM10K_SRRCTL_BSIZEPKT_SHIFT;
 
-       /* Configure the Rx ring to supress loopback packets */
+       /* Configure the Rx ring to suppress loopback packets */
        srrctl |= FM10K_SRRCTL_LOOPBACK_SUPPRESS;
        fm10k_write_reg(hw, FM10K_SRRCTL(reg_idx), srrctl);
 
This page took 0.026385 seconds and 5 git commands to generate.