]> git.baikalelectronics.ru Git - kernel.git/commit
atl1: update statistics code
authorSabrina Dubroca <sd@queasysnail.net>
Sun, 12 Jan 2014 17:50:40 +0000 (18:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 01:18:06 +0000 (17:18 -0800)
commitbbfc3ffc7e7d404595bcb0bd745764e1a0e5dd43
treea814cc5ea16154154aa421890759dd8567bab8bc
parent648eb96f174410f8fbc67669e9753818e8c699df
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>
drivers/net/ethernet/atheros/atlx/atl1.c
drivers/net/ethernet/atheros/atlx/atl1.h