commit | dfafe449bbc91dfeab9b722f4396d3846db4aa50 | [log] [tgz] |
---|---|---|
author | Andrew Lunn <andrew@lunn.ch> | Mon Nov 21 23:27:02 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue Nov 22 09:55:30 2016 -0500 |
tree | cd796553433bf49c50e70208a593bcd6b570d4ec | |
parent | de2273876e3fb5a5a62cc538936d06b014b06eda [diff] |
net: dsa: mv88e6xxx: Add stats_get_sset_count|string to ops structure Different families have different sets of statistics. Abstract this using a stats_get_sset_count and stats_get_strings op. Each stat has a bitmap, and the ops implementer uses a bit map mask to count the statistics which apply for the family, or return the list of strings. Signed-off-by: Andrew Lunn <andrew@lunn.ch> v2: Rename functions to avoid _ prefix. Signed-off-by: David S. Miller <davem@davemloft.net>