]> 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)
commitdd15d47b8ca98fe546d061614fedda7847582a08
tree964349661e4aeb1c4c0bf39779eeab81e47e3b2d
parent3e947da0595eb201a14c18105c35dc77329e6adc
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