summaryrefslogtreecommitdiff
path: root/net/dsa/dsa.c
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/dsa.c
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/dsa.c')
-rw-r--r--net/dsa/dsa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index fee4d28b7304..e5f156940c67 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -21,13 +21,15 @@
#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);