diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2008-08-26 07:27:05 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 10:03:33 -0400 |
commit | 036c9b097034b4ea82974f7c98d10ec7fbf81902 (patch) | |
tree | 17a57a64482d57ae9b4c4315666c70ce24e1aea4 /drivers/net/ixgbe | |
parent | 2c5645cf65dc6dce15dac47a7cdfabb85224fede (diff) |
ixgbe: do not update stats twice each receive
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 87ef2db8c430..50737ccdeca2 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -664,9 +664,6 @@ next_desc: | |||
664 | if (cleaned_count) | 664 | if (cleaned_count) |
665 | ixgbe_alloc_rx_buffers(adapter, rx_ring, cleaned_count); | 665 | ixgbe_alloc_rx_buffers(adapter, rx_ring, cleaned_count); |
666 | 666 | ||
667 | adapter->net_stats.rx_bytes += total_rx_bytes; | ||
668 | adapter->net_stats.rx_packets += total_rx_packets; | ||
669 | |||
670 | rx_ring->total_packets += total_rx_packets; | 667 | rx_ring->total_packets += total_rx_packets; |
671 | rx_ring->total_bytes += total_rx_bytes; | 668 | rx_ring->total_bytes += total_rx_bytes; |
672 | adapter->net_stats.rx_bytes += total_rx_bytes; | 669 | adapter->net_stats.rx_bytes += total_rx_bytes; |