mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
5cd8985a19
Add the support for the 4-bytes tag for DSA port distinguishing inserted allowing receiving and transmitting the packet via the particular port. The tag is being added after the source MAC address in the ethernet header. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Landen Chao <Landen.Chao@mediatek.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
37 lines
631 B
Plaintext
37 lines
631 B
Plaintext
config HAVE_NET_DSA
|
|
def_bool y
|
|
depends on INET && NETDEVICES && !S390
|
|
|
|
# Drivers must select NET_DSA and the appropriate tagging format
|
|
|
|
config NET_DSA
|
|
tristate "Distributed Switch Architecture"
|
|
depends on HAVE_NET_DSA && MAY_USE_DEVLINK
|
|
select NET_SWITCHDEV
|
|
select PHYLIB
|
|
---help---
|
|
Say Y if you want to enable support for the hardware switches supported
|
|
by the Distributed Switch Architecture.
|
|
|
|
if NET_DSA
|
|
|
|
# tagging formats
|
|
config NET_DSA_TAG_BRCM
|
|
bool
|
|
|
|
config NET_DSA_TAG_DSA
|
|
bool
|
|
|
|
config NET_DSA_TAG_EDSA
|
|
bool
|
|
|
|
config NET_DSA_TAG_TRAILER
|
|
bool
|
|
|
|
config NET_DSA_TAG_QCA
|
|
bool
|
|
|
|
config NET_DSA_TAG_MTK
|
|
bool
|
|
endif
|