summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/lan9303.h
diff options
context:
space:
mode:
authorEgil Hjelmeland <privat@egil-hjelmeland.no>2017-10-20 12:19:09 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-22 02:41:30 +0100
commitab335349b85229f58c6d65f058a8c98d2612b920 (patch)
treefe81eb79388954f2a58811faacbaafb86b083115 /drivers/net/dsa/lan9303.h
parent0d5fcebf3c370eb27f9a0e8db454625e73cd1cb4 (diff)
net: dsa: lan9303: Add port_fast_age and port_fdb_dump methods
Add DSA method port_fast_age as a step to STP support. Add low level functions for accessing the lan9303 ALR (Address Logic Resolution). Added DSA method port_fdb_dump Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/lan9303.h')
-rw-r--r--drivers/net/dsa/lan9303.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/lan9303.h b/drivers/net/dsa/lan9303.h
index 68ecd544b658..4db323d65741 100644
--- a/drivers/net/dsa/lan9303.h
+++ b/drivers/net/dsa/lan9303.h
@@ -11,6 +11,8 @@ struct lan9303_phy_ops {
int regnum, u16 val);
};
+#define LAN9303_NUM_ALR_RECORDS 512
+
struct lan9303 {
struct device *dev;
struct regmap *regmap;