diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2021-04-19 15:01:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-20 16:08:02 -0700 |
commit | a71acad90a3f079685efcb068e2251b912083d68 (patch) | |
tree | 07ecb02f2ccd01f2307ad4486ae7e9f695eab1f3 /include/net | |
parent | b62a12fc047d5382f1904c29de4f27dfde48ca28 (diff) | |
download | linux-a71acad90a3f079685efcb068e2251b912083d68.tar.bz2 |
net: dsa: enable selftest support for all switches by default
Most of generic selftest should be able to work with probably all ethernet
controllers. The DSA switches are not exception, so enable it by default at
least for DSA.
This patch was tested with SJA1105 and AR9331.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dsa.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 1259b0f40684..b52e9b057be4 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -577,6 +577,8 @@ struct dsa_switch_ops { int port, uint64_t *data); void (*get_stats64)(struct dsa_switch *ds, int port, struct rtnl_link_stats64 *s); + void (*self_test)(struct dsa_switch *ds, int port, + struct ethtool_test *etest, u64 *data); /* * ethtool Wake-on-LAN |