summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-06-29 20:17:14 -0700
committerJakub Kicinski <kuba@kernel.org>2022-06-29 20:19:15 -0700
commit2a832912dba29f30f8df58b682ab0535c89682b5 (patch)
treec5d8a31a4873c1057ea6b37471ccc970705e2381 /include/net/dsa.h
parent702e70143291b09e6245deb8ab904d1c18ed4f47 (diff)
parent961d6c70d886ecc057f6e501db5879feb55db3b3 (diff)
downloadlinux-2a832912dba29f30f8df58b682ab0535c89682b5.tar.bz2
Merge branch 'net-dsa-add-pause-stats-support'
Oleksij Rempel says: ==================== net: dsa: add pause stats support ==================== Link: https://lore.kernel.org/r/20220628085155.2591201-1-o.rempel@pengutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 33283eeda697..ea7bf007f34f 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -895,6 +895,8 @@ struct dsa_switch_ops {
const struct ethtool_rmon_hist_range **ranges);
void (*get_stats64)(struct dsa_switch *ds, int port,
struct rtnl_link_stats64 *s);
+ void (*get_pause_stats)(struct dsa_switch *ds, int port,
+ struct ethtool_pause_stats *pause_stats);
void (*self_test)(struct dsa_switch *ds, int port,
struct ethtool_test *etest, u64 *data);