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>
#include "devlink.h"
#include "dsa.h"
-#include "dsa_priv.h"
#include "master.h"
+#include "netlink.h"
#include "port.h"
#include "slave.h"
#include "switch.h"
#include "tag.h"
+#define DSA_MAX_NUM_OFFLOADING_BRIDGES BITS_PER_LONG
+
static DEFINE_MUTEX(dsa2_mutex);
LIST_HEAD(dsa_tree_list);
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * net/dsa/dsa_priv.h - Hardware switch handling
- * Copyright (c) 2008-2009 Marvell Semiconductor
- */
-
-#ifndef __DSA_PRIV_H
-#define __DSA_PRIV_H
-
-#include <linux/phy.h>
-#include <linux/netdevice.h>
-#include <net/dsa.h>
-
-#define DSA_MAX_NUM_OFFLOADING_BRIDGES BITS_PER_LONG
-
-/* netlink.c */
-extern struct rtnl_link_ops dsa_link_ops __read_mostly;
-
-#endif
#include <linux/netdevice.h>
#include <net/rtnetlink.h>
-#include "dsa_priv.h"
+#include "netlink.h"
#include "slave.h"
static const struct nla_policy dsa_policy[IFLA_DSA_MAX + 1] = {
--- /dev/null
+/* 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
#include <linux/netpoll.h>
#include "dsa.h"
-#include "dsa_priv.h"
#include "port.h"
#include "master.h"
+#include "netlink.h"
#include "slave.h"
#include "tag.h"
#include <net/switchdev.h>
#include "dsa.h"
-#include "dsa_priv.h"
+#include "netlink.h"
#include "port.h"
#include "slave.h"
#include "switch.h"
#include <linux/if_vlan.h>
#include <linux/dsa/8021q.h>
-#include "dsa_priv.h"
#include "port.h"
#include "switch.h"
#include "tag.h"
#include <linux/skbuff.h>
#include <net/dsa.h>
-#include "dsa_priv.h"
#include "tag.h"
#define HELLCREEK_NAME "hellcreek"