diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-04-01 22:06:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-01 22:55:41 -0400 |
commit | e413e7e1f7493910274c552d7f70ae396c93199a (patch) | |
tree | cc658c267c3efd5c11fc15873c2255863c7e1e81 /drivers/net/dsa/mv88e6xxx.h | |
parent | 2f40c6981ac0adcaa2b3fc64e6ae81f80809aec8 (diff) |
net: dsa: Consolidate getting the statistics
Reading the statistics from the hardware is the same for all
chips. What differs is the number of available statistics. Have just
one copy of the code in the shared mv88e6xxx.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index 44b0ec79cc6b..fbbedc07754f 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h | |||
@@ -150,12 +150,11 @@ int mv88e6xxx_phy_read_ppu(struct dsa_switch *ds, int addr, int regnum); | |||
150 | int mv88e6xxx_phy_write_ppu(struct dsa_switch *ds, int addr, | 150 | int mv88e6xxx_phy_write_ppu(struct dsa_switch *ds, int addr, |
151 | int regnum, u16 val); | 151 | int regnum, u16 val); |
152 | void mv88e6xxx_poll_link(struct dsa_switch *ds); | 152 | void mv88e6xxx_poll_link(struct dsa_switch *ds); |
153 | void mv88e6xxx_get_strings(struct dsa_switch *ds, | 153 | void mv88e6xxx_get_strings(struct dsa_switch *ds, int port, uint8_t *data); |
154 | int nr_stats, struct mv88e6xxx_hw_stat *stats, | 154 | void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, int port, |
155 | int port, uint8_t *data); | 155 | uint64_t *data); |
156 | void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, | 156 | int mv88e6xxx_get_sset_count(struct dsa_switch *ds); |
157 | int nr_stats, struct mv88e6xxx_hw_stat *stats, | 157 | int mv88e6xxx_get_sset_count_basic(struct dsa_switch *ds); |
158 | int port, uint64_t *data); | ||
159 | int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port); | 158 | int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port); |
160 | void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, | 159 | void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, |
161 | struct ethtool_regs *regs, void *_p); | 160 | struct ethtool_regs *regs, void *_p); |