]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Provide additional RMON statistics
authorGuenter Roeck <linux@roeck-us.net>
Wed, 29 Oct 2014 17:45:07 +0000 (10:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 18:54:12 +0000 (14:54 -0400)
commitb90ca6f9d4ee5bc5a9fb4059f7764816fb809a0f
treedd62d3494f20f752ae95f02d183c64f7c4abe316
parentb4155349758665fce7fd70661830a2f796f94c2a
net: dsa: Provide additional RMON statistics

Display sw_in_discards, sw_in_filtered, and sw_out_filtered for chips
supported by mv88e6123_61_65 and mv88e6352 drivers.

The variables are provided in port registers, not the normal status registers.
Mark by adding 0x100 to the register offset and add special handling code
to mv88e6xxx_get_ethtool_stats.

Signed-off-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/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c