]> 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)
commit5f5959155f77013d979bc14736ed089e96732400
treea814cc5ea16154154aa421890759dd8567bab8bc
parent8086110d168631b83c0cd55634ce3d8d64bb864b
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