aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/atheros/atlx/atl1.h
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2014-01-12 18:50:40 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-14 17:18:06 -0800
commite3d21ea1a119ec31673d94f26c68d922bbd3d211 (patch)
treea814cc5ea16154154aa421890759dd8567bab8bc /drivers/net/ethernet/atheros/atlx/atl1.h
parentatl1e: update statistics code (diff)
downloadlinux-dev-e3d21ea1a119ec31673d94f26c68d922bbd3d211.tar.xz
linux-dev-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 '')
-rw-r--r--drivers/net/ethernet/atheros/atlx/atl1.h1
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;