From: Jesse Brandeburg Date: Tue, 26 Aug 2008 11:27:05 +0000 (-0700) Subject: ixgbe: do not update stats twice each receive X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=036c9b097034b4ea82974f7c98d10ec7fbf81902;p=deliverable%2Flinux.git ixgbe: do not update stats twice each receive Signed-off-by: Jesse Brandeburg Signed-off-by: Jeff Kirsher Signed-off-by: Jeff Garzik --- 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: if (cleaned_count) ixgbe_alloc_rx_buffers(adapter, rx_ring, cleaned_count); - adapter->net_stats.rx_bytes += total_rx_bytes; - adapter->net_stats.rx_packets += total_rx_packets; - rx_ring->total_packets += total_rx_packets; rx_ring->total_bytes += total_rx_bytes; adapter->net_stats.rx_bytes += total_rx_bytes;