summaryrefslogtreecommitdiff
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2021-01-11 11:46:57 +0100
committerJakub Kicinski <kuba@kernel.org>2021-01-12 20:17:09 -0800
commitc2ec5f2ecf6aeef60c63d1af9ddcacdcbf829d68 (patch)
treeb1342f26aa55ff2f20fd4e8ecdfaeda48b4540a7 /include/net/dsa.h
parent46e05e1df628ab054486eafcc06a3c6512b338a1 (diff)
net: dsa: add optional stats64 support
Allow DSA drivers to export stats64 Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index c9a3dd7588df..c3485ba6c312 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -482,7 +482,7 @@ struct dsa_switch_ops {
void (*phylink_fixed_state)(struct dsa_switch *ds, int port,
struct phylink_link_state *state);
/*
- * ethtool hardware statistics.
+ * Port statistics counters.
*/
void (*get_strings)(struct dsa_switch *ds, int port,
u32 stringset, uint8_t *data);
@@ -491,6 +491,8 @@ struct dsa_switch_ops {
int (*get_sset_count)(struct dsa_switch *ds, int port, int sset);
void (*get_ethtool_phy_stats)(struct dsa_switch *ds,
int port, uint64_t *data);
+ void (*get_stats64)(struct dsa_switch *ds, int port,
+ struct rtnl_link_stats64 *s);
/*
* ethtool Wake-on-LAN