]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit17ee3e04ddbf921e723fd0b0877220791f6f4c9a
treedd62d3494f20f752ae95f02d183c64f7c4abe316
parent95d08b5a4a4c96daf6c464dcfd21fb18141846af
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