]> git.karo-electronics.de Git - linux-beck.git/commit
macb: support statistics for GEM devices
authorJamie Iles <jamie@jamieiles.com>
Wed, 9 Mar 2011 16:26:35 +0000 (16:26 +0000)
committerJamie Iles <jamie@jamieiles.com>
Tue, 22 Nov 2011 15:21:19 +0000 (15:21 +0000)
commita494ed8e25759f05f5a419d675f198e4359ef6fc
tree2eea29ca18468e7e7c4d25abd6d40117ecd7a98e
parent70c9f3d4372ffa90775603e9c4e055a26a9b83e1
macb: support statistics for GEM devices

GEM devices have a different number of statistics registers and they
are at a different offset to MACB devices.  Make the statistics
collection method dependent on device type.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Tested-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h