Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78932
b: refs/heads/master
c: ef90e4e
h: refs/heads/master
v: v3
  • Loading branch information
Auke Kok authored and David S. Miller committed Jan 28, 2008
1 parent 86b8e5c commit 1e2e9c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 419886927796dfeca87c1fd11d1fe2ed442103cc
refs/heads/master: ef90e4eca9fcade05dd03f853df75cf459a75422
10 changes: 6 additions & 4 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3653,10 +3653,6 @@ e1000_update_stats(struct e1000_adapter *adapter)
}

/* Fill out the OS statistics structure */
adapter->net_stats.rx_packets = adapter->stats.gprc;
adapter->net_stats.tx_packets = adapter->stats.gptc;
adapter->net_stats.rx_bytes = adapter->stats.gorcl;
adapter->net_stats.tx_bytes = adapter->stats.gotcl;
adapter->net_stats.multicast = adapter->stats.mprc;
adapter->net_stats.collisions = adapter->stats.colc;

Expand Down Expand Up @@ -4032,6 +4028,8 @@ e1000_clean_tx_irq(struct e1000_adapter *adapter,
}
adapter->total_tx_bytes += total_tx_bytes;
adapter->total_tx_packets += total_tx_packets;
adapter->net_stats.tx_bytes += total_tx_bytes;
adapter->net_stats.tx_packets += total_tx_packets;
return cleaned;
}

Expand Down Expand Up @@ -4254,6 +4252,8 @@ e1000_clean_rx_irq(struct e1000_adapter *adapter,

adapter->total_rx_packets += total_rx_packets;
adapter->total_rx_bytes += total_rx_bytes;
adapter->net_stats.rx_bytes += total_rx_bytes;
adapter->net_stats.rx_packets += total_rx_packets;
return cleaned;
}

Expand Down Expand Up @@ -4441,6 +4441,8 @@ e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,

adapter->total_rx_packets += total_rx_packets;
adapter->total_rx_bytes += total_rx_bytes;
adapter->net_stats.rx_bytes += total_rx_bytes;
adapter->net_stats.rx_packets += total_rx_packets;
return cleaned;
}

Expand Down

0 comments on commit 1e2e9c4

Please sign in to comment.