diff options
author | Esben Haabendal <esben@geanix.com> | 2021-06-17 11:49:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-17 20:39:47 +0200 |
commit | 2658530d797ff33d110efd1513b7a7ef33ba5a30 (patch) | |
tree | 2e16252478ef809844ecbb666a6c6c6144ab51a1 /drivers/net/ethernet/freescale/gianfar.h | |
parent | net: gianfar: Convert to ndo_get_stats64 interface (diff) | |
download | linux-2658530d797ff33d110efd1513b7a7ef33ba5a30.tar.xz linux-2658530d797ff33d110efd1513b7a7ef33ba5a30.zip |
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: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.h')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.h b/drivers/net/ethernet/freescale/gianfar.h index 5ea47df93e5e..d8ae5353e881 100644 --- a/drivers/net/ethernet/freescale/gianfar.h +++ b/drivers/net/ethernet/freescale/gianfar.h @@ -913,8 +913,8 @@ enum { * Per TX queue stats */ struct tx_q_stats { - unsigned long tx_packets; - unsigned long tx_bytes; + u64 tx_packets; + u64 tx_bytes; }; /** @@ -963,9 +963,9 @@ struct gfar_priv_tx_q { * Per RX queue stats */ struct rx_q_stats { - unsigned long rx_packets; - unsigned long rx_bytes; - unsigned long rx_dropped; + u64 rx_packets; + u64 rx_bytes; + u64 rx_dropped; }; struct gfar_rx_buff { |