diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-11-21 14:55:49 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-23 05:41:51 +0100 |
commit | 6dbdfce7735786f9f2dd3af615c8a03ffa1246f5 (patch) | |
tree | f62be8866926014cced077707d5770a2dbc8f5a9 /net/dsa/switch.h | |
parent | net: dsa: move headers exported by switch.c to switch.h (diff) | |
download | linux-6dbdfce7735786f9f2dd3af615c8a03ffa1246f5.tar.xz linux-6dbdfce7735786f9f2dd3af615c8a03ffa1246f5.zip |
net: dsa: move dsa_tree_notify() and dsa_broadcast() to switch.c
There isn't an intuitive place for these 2 cross-chip notifier functions
according to the function-to-file classification based on names
(dsa_switch_*() goes to switch.c), but I consider these to be part of
the cross-chip notifier handling, therefore part of switch.c. Move them
there to reduce bloat in dsa2.c (the place where all code with no better
place to go goes).
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa/switch.h')
-rw-r--r-- | net/dsa/switch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dsa/switch.h b/net/dsa/switch.h index b831b6fb45e9..b2fd496bc56f 100644 --- a/net/dsa/switch.h +++ b/net/dsa/switch.h @@ -3,8 +3,12 @@ #ifndef __DSA_SWITCH_H #define __DSA_SWITCH_H +struct dsa_switch_tree; struct dsa_switch; +int dsa_tree_notify(struct dsa_switch_tree *dst, unsigned long e, void *v); +int dsa_broadcast(unsigned long e, void *v); + int dsa_switch_register_notifier(struct dsa_switch *ds); void dsa_switch_unregister_notifier(struct dsa_switch *ds); |