diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-07-27 13:35:12 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-29 07:24:38 +0200 |
commit | 027152b830434e3632ad5dd678cc5d4740358dbb (patch) | |
tree | 2469a7522b6c1d96b5fa07e94913fc1ceeaffd90 /drivers/net/dsa/qca/qca8k.h | |
parent | net: dsa: qca8k: make mib autocast feature optional (diff) | |
download | linux-027152b830434e3632ad5dd678cc5d4740358dbb.tar.xz linux-027152b830434e3632ad5dd678cc5d4740358dbb.zip |
net: dsa: qca8k: move mib struct to common code
The same MIB struct is used by drivers based on qca8k family switch. Move
it to common code to make it accessible also by other drivers.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dsa/qca/qca8k.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca/qca8k.h b/drivers/net/dsa/qca/qca8k.h index 377ce8c72914..0f274bb350f8 100644 --- a/drivers/net/dsa/qca/qca8k.h +++ b/drivers/net/dsa/qca/qca8k.h @@ -422,4 +422,7 @@ struct qca8k_fdb { u8 mac[6]; }; +/* Common setup function */ +extern const struct qca8k_mib_desc ar8327_mib[]; + #endif /* __QCA8K_H */ |