summaryrefslogtreecommitdiff
path: root/net/dsa/netlink.h
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-11-21 16:55:55 +0300
committerJakub Kicinski <kuba@kernel.org>2022-11-23 07:41:54 +0300
commit5917bfe688672a6afc816ad472a274eb16c9bb7a (patch)
treed86eeff9ffd9ca54719cb6d983db3270265f0004 /net/dsa/netlink.h
parent19d05ea712ecbbb67d302664da5ec58b37b9aece (diff)
downloadlinux-5917bfe688672a6afc816ad472a274eb16c9bb7a.tar.xz
net: dsa: kill off dsa_priv.h
The last remnants in dsa_priv.h are a netlink-related definition for which we create a new header, and DSA_MAX_NUM_OFFLOADING_BRIDGES which is only used from dsa.c, so move it there. Some inclusions need to be adjusted now that we no longer have headers included transitively from dsa_priv.h. 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/netlink.h')
-rw-r--r--net/dsa/netlink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/dsa/netlink.h b/net/dsa/netlink.h
new file mode 100644
index 000000000000..7eda2fa15722
--- /dev/null
+++ b/net/dsa/netlink.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef __DSA_NETLINK_H
+#define __DSA_NETLINK_H
+
+extern struct rtnl_link_ops dsa_link_ops __read_mostly;
+
+#endif