net: dsa: move headers exported by switch.c to switch.h
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 21 Nov 2022 13:55:48 +0000 (15:55 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Nov 2022 04:41:51 +0000 (20:41 -0800)
commit0c603136e1e0868fb5325c3b2addc669a10ed384
treed26685177c3d4cd44b2286f4004a71d4c3dedd5b
parentbd954b826032e7bd6be8a53e30eb81c1b348aef6
net: dsa: move headers exported by switch.c to switch.h

Reduce code bloat in dsa_priv.h by moving the prototypes exported by
switch.h into their own header file.

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>
net/dsa/dsa2.c
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/switch.c
net/dsa/switch.h [new file with mode: 0644]
net/dsa/tag_8021q.c