]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Consolidate getting the statistics
authorAndrew Lunn <andrew@lunn.ch>
Thu, 2 Apr 2015 02:06:38 +0000 (04:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 02:55:41 +0000 (22:55 -0400)
commit4c8e5fd8c995f3575abee2d7fb33573d02dd8aed
treecc658c267c3efd5c11fc15873c2255863c7e1e81
parentff6af1ede9e21812681858e4f2604ab1c61cab5e
net: dsa: Consolidate getting the statistics

Reading the statistics from the hardware is the same for all
chips. What differs is the number of available statistics. Have just
one copy of the code in the shared mv88e6xxx.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6123_61_65.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h