diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-10-29 18:45:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-30 19:54:12 +0100 |
commit | 17ee3e04ddbf921e723fd0b0877220791f6f4c9a (patch) | |
tree | dd62d3494f20f752ae95f02d183c64f7c4abe316 /drivers/net/dsa/mv88e6352.c | |
parent | net: dsa/mv88e6352: Add support for reading switch registers (diff) | |
download | linux-17ee3e04ddbf921e723fd0b0877220791f6f4c9a.tar.xz linux-17ee3e04ddbf921e723fd0b0877220791f6f4c9a.zip |
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>
Diffstat (limited to 'drivers/net/dsa/mv88e6352.c')
-rw-r--r-- | drivers/net/dsa/mv88e6352.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6352.c b/drivers/net/dsa/mv88e6352.c index d5bbe497de9d..258d9ef5ef25 100644 --- a/drivers/net/dsa/mv88e6352.c +++ b/drivers/net/dsa/mv88e6352.c @@ -539,6 +539,9 @@ static struct mv88e6xxx_hw_stat mv88e6352_hw_stats[] = { { "hist_256_511bytes", 4, 0x0b, }, { "hist_512_1023bytes", 4, 0x0c, }, { "hist_1024_max_bytes", 4, 0x0d, }, + { "sw_in_discards", 4, 0x110, }, + { "sw_in_filtered", 2, 0x112, }, + { "sw_out_filtered", 2, 0x113, }, }; static int mv88e6352_read_eeprom_word(struct dsa_switch *ds, int addr) |