]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Implement mv88e6390 get_stats
authorAndrew Lunn <andrew@lunn.ch>
Mon, 21 Nov 2016 22:27:04 +0000 (23:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2016 14:55:30 +0000 (09:55 -0500)
commitc3a45e157f818ac573f0c52a2d5129426ac8cece
tree964349661e4aeb1c4c0bf39779eeab81e47e3b2d
parent5d317894fbf1b48034edb8805ff72579f8baa967
net: dsa: mv88e6xxx: Implement mv88e6390 get_stats

The mv88e6390 uses a different bit to select between bank0 and bank1
of the statistics. So implement an ops function for this, and pass the
selector bit to the generic stats read function. Also, the histogram
selection has moved for the mv88e6390, so abstract its selection as
well.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h