diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2019-05-02 16:23:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-03 10:49:17 -0400 |
commit | 8aa9ebccae87621d997707e4f25e53fddd7e30e4 (patch) | |
tree | 31fca4070adc3ba2cd7f17f84838f73d7fac95d8 /include/linux/dsa | |
parent | 554aae35007e49f533d3d10e788295f7141725bc (diff) |
net: dsa: Introduce driver for NXP SJA1105 5-port L2 switch
At this moment the following is supported:
* Link state management through phylib
* Autonomous L2 forwarding managed through iproute2 bridge commands.
IP termination must be done currently through the master netdevice,
since the switch is unmanaged at this point and using
DSA_TAG_PROTO_NONE.
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Georg Waibel <georg.waibel@sensor-technik.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/dsa')
-rw-r--r-- | include/linux/dsa/sja1105.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/dsa/sja1105.h b/include/linux/dsa/sja1105.h new file mode 100644 index 000000000000..30559d1d0e1b --- /dev/null +++ b/include/linux/dsa/sja1105.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 | ||
2 | * Copyright (c) 2019, Vladimir Oltean <olteanv@gmail.com> | ||
3 | */ | ||
4 | |||
5 | /* Included by drivers/net/dsa/sja1105/sja1105.h */ | ||
6 | |||
7 | #ifndef _NET_DSA_SJA1105_H | ||
8 | #define _NET_DSA_SJA1105_H | ||
9 | |||
10 | /* The switch can only be convinced to stay in unmanaged mode and not trap any | ||
11 | * link-local traffic by actually telling it to filter frames sent at the | ||
12 | * 00:00:00:00:00:00 destination MAC. | ||
13 | */ | ||
14 | #define SJA1105_LINKLOCAL_FILTER_A 0x000000000000ull | ||
15 | #define SJA1105_LINKLOCAL_FILTER_A_MASK 0xFFFFFFFFFFFFull | ||
16 | #define SJA1105_LINKLOCAL_FILTER_B 0x000000000000ull | ||
17 | #define SJA1105_LINKLOCAL_FILTER_B_MASK 0xFFFFFFFFFFFFull | ||
18 | |||
19 | #endif /* _NET_DSA_SJA1105_H */ | ||