Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 036c9b09 authored by Jesse Brandeburg's avatar Jesse Brandeburg Committed by Jeff Garzik
Browse files

ixgbe: do not update stats twice each receive

parent 2c5645cf
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -664,9 +664,6 @@ static bool ixgbe_clean_rx_irq(struct ixgbe_adapter *adapter,
	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;