Commit 2658530d authored by Esben Haabendal's avatar Esben Haabendal Committed by David S. Miller

net: gianfar: Extend statistics counters to 64-bit

No reason to wrap counter values at 2^32.  Especially the bytes counters
can wrap pretty fast on Gbit networks.
Signed-off-by: default avatarEsben Haabendal <esben@geanix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d59a24fd
...@@ -913,8 +913,8 @@ enum { ...@@ -913,8 +913,8 @@ enum {
* Per TX queue stats * Per TX queue stats
*/ */
struct tx_q_stats { struct tx_q_stats {
unsigned long tx_packets; u64 tx_packets;
unsigned long tx_bytes; u64 tx_bytes;
}; };
/** /**
...@@ -963,9 +963,9 @@ struct gfar_priv_tx_q { ...@@ -963,9 +963,9 @@ struct gfar_priv_tx_q {
* Per RX queue stats * Per RX queue stats
*/ */
struct rx_q_stats { struct rx_q_stats {
unsigned long rx_packets; u64 rx_packets;
unsigned long rx_bytes; u64 rx_bytes;
unsigned long rx_dropped; u64 rx_dropped;
}; };
struct gfar_rx_buff { struct gfar_rx_buff {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment