mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 00:34:10 +08:00
ee0ab7a2b0
DSA now uses one of the symbols exported by the bridge, br_vlan_enabled(). This has a stub, if the bridge is not enabled. However, if the bridge is enabled, we cannot have DSA built in and the bridge as a module, otherwise we get undefined symbols at link time: net/dsa/port.o: In function `dsa_port_vlan_add': net/dsa/port.c:255: undefined reference to `br_vlan_enabled' net/dsa/port.o: In function `dsa_port_vlan_del': net/dsa/port.c:270: undefined reference to `br_vlan_enabled' Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
48 lines
766 B
Plaintext
48 lines
766 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
|
|
depends on BRIDGE || BRIDGE=n
|
|
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_BRCM_PREPEND
|
|
bool
|
|
|
|
config NET_DSA_TAG_DSA
|
|
bool
|
|
|
|
config NET_DSA_TAG_EDSA
|
|
bool
|
|
|
|
config NET_DSA_TAG_KSZ
|
|
bool
|
|
|
|
config NET_DSA_TAG_LAN9303
|
|
bool
|
|
|
|
config NET_DSA_TAG_MTK
|
|
bool
|
|
|
|
config NET_DSA_TAG_TRAILER
|
|
bool
|
|
|
|
config NET_DSA_TAG_QCA
|
|
bool
|
|
|
|
endif
|