diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2014-01-12 18:50:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-14 17:18:06 -0800 |
commit | e3d21ea1a119ec31673d94f26c68d922bbd3d211 (patch) | |
tree | a814cc5ea16154154aa421890759dd8567bab8bc /drivers/net/ethernet/atheros/atlx/atl1.h | |
parent | fb3a42fc39bf4453dc6fab25bbbf6f0416936887 (diff) | |
download | linux-e3d21ea1a119ec31673d94f26c68d922bbd3d211.tar.gz linux-e3d21ea1a119ec31673d94f26c68d922bbd3d211.tar.bz2 linux-e3d21ea1a119ec31673d94f26c68d922bbd3d211.zip |
atl1: update statistics code
As Ben Hutchings pointed out for the stats in alx, some
hardware-specific stats aren't matched to the right net_device_stats
field. Also fix the collision field and include errors in the total
number of RX/TX packets. Add a rx_dropped field and use it where
netdev->stats was modified directly out of the stats update function.
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros/atlx/atl1.h')
-rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl1.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/atheros/atlx/atl1.h b/drivers/net/ethernet/atheros/atlx/atl1.h index 3bf79a56220d..34a58cd846a0 100644 --- a/drivers/net/ethernet/atheros/atlx/atl1.h +++ b/drivers/net/ethernet/atheros/atlx/atl1.h @@ -666,6 +666,7 @@ struct atl1_sft_stats { u64 rx_errors; u64 rx_length_errors; u64 rx_crc_errors; + u64 rx_dropped; u64 rx_frame_errors; u64 rx_fifo_errors; u64 rx_missed_errors; |