summaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_ksz.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-11-21 15:55:47 +0200
committerJakub Kicinski <kuba@kernel.org>2022-11-22 20:41:50 -0800
commitbd954b826032e7bd6be8a53e30eb81c1b348aef6 (patch)
tree5e20fa077b53917d4b2773432a9401a33562daa9 /net/dsa/tag_ksz.c
parent09f92341681a23346c456938bcb2670de2cd99d4 (diff)
downloadlinux-bd954b826032e7bd6be8a53e30eb81c1b348aef6.tar.gz
linux-bd954b826032e7bd6be8a53e30eb81c1b348aef6.tar.bz2
linux-bd954b826032e7bd6be8a53e30eb81c1b348aef6.zip
net: dsa: move tagging protocol code to tag.{c,h}
It would be nice if tagging protocol drivers could include just the header they need, since they are (mostly) data path and isolated from most of the other DSA core code does. Create a tag.c and a tag.h file which are meant to support tagging protocol drivers. 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/tag_ksz.c')
-rw-r--r--net/dsa/tag_ksz.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dsa/tag_ksz.c b/net/dsa/tag_ksz.c
index 37db5156f9a3..0f6ae143afc9 100644
--- a/net/dsa/tag_ksz.c
+++ b/net/dsa/tag_ksz.c
@@ -7,7 +7,8 @@
#include <linux/etherdevice.h>
#include <linux/list.h>
#include <net/dsa.h>
-#include "dsa_priv.h"
+
+#include "tag.h"
#define KSZ8795_NAME "ksz8795"
#define KSZ9477_NAME "ksz9477"