aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_ethtool.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_ethtool.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c
index 928b97cc1700..4701abf3a59b 100644
--- a/drivers/net/ixgbe/ixgbe_ethtool.c
+++ b/drivers/net/ixgbe/ixgbe_ethtool.c
@@ -774,6 +774,14 @@ static void ixgbe_get_ethtool_stats(struct net_device *netdev,
774 int j, k; 774 int j, k;
775 int i; 775 int i;
776 u64 aggregated = 0, flushed = 0, no_desc = 0; 776 u64 aggregated = 0, flushed = 0, no_desc = 0;
777 for (i = 0; i < adapter->num_rx_queues; i++) {
778 aggregated += adapter->rx_ring[i].lro_mgr.stats.aggregated;
779 flushed += adapter->rx_ring[i].lro_mgr.stats.flushed;
780 no_desc += adapter->rx_ring[i].lro_mgr.stats.no_desc;
781 }
782 adapter->lro_aggregated = aggregated;
783 adapter->lro_flushed = flushed;
784 adapter->lro_no_desc = no_desc;
777 785
778 ixgbe_update_stats(adapter); 786 ixgbe_update_stats(adapter);
779 for (i = 0; i < IXGBE_GLOBAL_STATS_LEN; i++) { 787 for (i = 0; i < IXGBE_GLOBAL_STATS_LEN; i++) {
@@ -788,17 +796,11 @@ static void ixgbe_get_ethtool_stats(struct net_device *netdev,
788 i += k; 796 i += k;
789 } 797 }
790 for (j = 0; j < adapter->num_rx_queues; j++) { 798 for (j = 0; j < adapter->num_rx_queues; j++) {
791 aggregated += adapter->rx_ring[j].lro_mgr.stats.aggregated;
792 flushed += adapter->rx_ring[j].lro_mgr.stats.flushed;
793 no_desc += adapter->rx_ring[j].lro_mgr.stats.no_desc;
794 queue_stat = (u64 *)&adapter->rx_ring[j].stats; 799 queue_stat = (u64 *)&adapter->rx_ring[j].stats;
795 for (k = 0; k < stat_count; k++) 800 for (k = 0; k < stat_count; k++)
796 data[i + k] = queue_stat[k]; 801 data[i + k] = queue_stat[k];
797 i += k; 802 i += k;
798 } 803 }
799 adapter->lro_aggregated = aggregated;
800 adapter->lro_flushed = flushed;
801 adapter->lro_no_desc = no_desc;
802} 804}
803 805
804static void ixgbe_get_strings(struct net_device *netdev, u32 stringset, 806static void ixgbe_get_strings(struct net_device *netdev, u32 stringset,