summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx.h
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2016-02-26 19:16:03 +0100
committerDavid S. Miller <davem@davemloft.net>2016-03-01 22:24:52 +0100
commit3285f9e8695b26b1e15a58f21aff21087a7e7555 (patch)
tree5af1c0eff71bf350fad00ee49c49ea60933f7878 /drivers/net/dsa/mv88e6xxx.h
parentnet: dsa: mv88e6xxx: extract single FDB dump (diff)
downloadlinux-3285f9e8695b26b1e15a58f21aff21087a7e7555.tar.xz
linux-3285f9e8695b26b1e15a58f21aff21087a7e7555.zip
net: dsa: mv88e6xxx: assign dynamic FDB to VLANs
Add a _mv88e6xxx_fid_new function which gives and flushes the lowest FID available. Call it when preparing a new VTU entry. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r--drivers/net/dsa/mv88e6xxx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h
index 6a30bda63a2f..9df331e85bf8 100644
--- a/drivers/net/dsa/mv88e6xxx.h
+++ b/drivers/net/dsa/mv88e6xxx.h
@@ -355,6 +355,8 @@
#define GLOBAL2_QOS_WEIGHT 0x1c
#define GLOBAL2_MISC 0x1d
+#define MV88E6XXX_N_FID 4096
+
struct mv88e6xxx_switch_id {
u16 id;
char *name;