mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
b73adef677
In order to support bridging offloads in DSA switch drivers, select NET_SWITCHDEV to get access to the port_stp_update and parent_get_id NDOs that we are required to implement. To facilitate the integratation at the DSA driver level, we implement 3 types of operations: - port_join_bridge - port_leave_bridge - port_stp_update DSA will resolve which switch ports that are currently bridge port members as some Switch hardware/drivers need to know about that to limit the register programming to just the relevant registers (especially for slow MDIO buses). We also take care of setting the correct STP state when slave network devices are brought up/down while being bridge members. Finally, when a port is leaving the bridge, we make sure we set in BR_STATE_FORWARDING state, otherwise the bridge layer would leave it disabled as a result of having left the bridge. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
39 lines
782 B
Text
39 lines
782 B
Text
config HAVE_NET_DSA
|
|
def_bool y
|
|
depends on NETDEVICES && !S390
|
|
|
|
# Drivers must select NET_DSA and the appropriate tagging format
|
|
|
|
config NET_DSA
|
|
tristate
|
|
depends on HAVE_NET_DSA
|
|
select PHYLIB
|
|
select NET_SWITCHDEV
|
|
|
|
if NET_DSA
|
|
|
|
config NET_DSA_HWMON
|
|
bool "Distributed Switch Architecture HWMON support"
|
|
default y
|
|
depends on HWMON && !(NET_DSA=y && HWMON=m)
|
|
---help---
|
|
Say Y if you want to expose thermal sensor data on switches supported
|
|
by the Distributed Switch Architecture.
|
|
|
|
Some of those switches contain thermal sensors. This data is available
|
|
via the hwmon sysfs interface and exposes the onboard sensors.
|
|
|
|
# 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
|
|
|
|
endif
|