162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# 802.1d Ethernet Bridging
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig BRIDGE
762306a36Sopenharmony_ci	tristate "802.1d Ethernet Bridging"
862306a36Sopenharmony_ci	select LLC
962306a36Sopenharmony_ci	select STP
1062306a36Sopenharmony_ci	depends on IPV6 || IPV6=n
1162306a36Sopenharmony_ci	help
1262306a36Sopenharmony_ci	  If you say Y here, then your Linux box will be able to act as an
1362306a36Sopenharmony_ci	  Ethernet bridge, which means that the different Ethernet segments it
1462306a36Sopenharmony_ci	  is connected to will appear as one Ethernet to the participants.
1562306a36Sopenharmony_ci	  Several such bridges can work together to create even larger
1662306a36Sopenharmony_ci	  networks of Ethernets using the IEEE 802.1 spanning tree algorithm.
1762306a36Sopenharmony_ci	  As this is a standard, Linux bridges will cooperate properly with
1862306a36Sopenharmony_ci	  other third party bridge products.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci	  In order to use the Ethernet bridge, you'll need the bridge
2162306a36Sopenharmony_ci	  configuration tools; see <file:Documentation/networking/bridge.rst>
2262306a36Sopenharmony_ci	  for location. Please read the Bridge mini-HOWTO for more
2362306a36Sopenharmony_ci	  information.
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci	  If you enable iptables support along with the bridge support then you
2662306a36Sopenharmony_ci	  turn your bridge into a bridging IP firewall.
2762306a36Sopenharmony_ci	  iptables will then see the IP packets being bridged, so you need to
2862306a36Sopenharmony_ci	  take this into account when setting up your firewall rules.
2962306a36Sopenharmony_ci	  Enabling arptables support when bridging will let arptables see
3062306a36Sopenharmony_ci	  bridged ARP traffic in the arptables FORWARD chain.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	  To compile this code as a module, choose M here: the module
3362306a36Sopenharmony_ci	  will be called bridge.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci	  If unsure, say N.
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciconfig BRIDGE_IGMP_SNOOPING
3862306a36Sopenharmony_ci	bool "IGMP/MLD snooping"
3962306a36Sopenharmony_ci	depends on BRIDGE
4062306a36Sopenharmony_ci	depends on INET
4162306a36Sopenharmony_ci	default y
4262306a36Sopenharmony_ci	help
4362306a36Sopenharmony_ci	  If you say Y here, then the Ethernet bridge will be able selectively
4462306a36Sopenharmony_ci	  forward multicast traffic based on IGMP/MLD traffic received from
4562306a36Sopenharmony_ci	  each port.
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ci	  Say N to exclude this support and reduce the binary size.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ci	  If unsure, say Y.
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciconfig BRIDGE_VLAN_FILTERING
5262306a36Sopenharmony_ci	bool "VLAN filtering"
5362306a36Sopenharmony_ci	depends on BRIDGE
5462306a36Sopenharmony_ci	depends on VLAN_8021Q
5562306a36Sopenharmony_ci	default n
5662306a36Sopenharmony_ci	help
5762306a36Sopenharmony_ci	  If you say Y here, then the Ethernet bridge will be able selectively
5862306a36Sopenharmony_ci	  receive and forward traffic based on VLAN information in the packet
5962306a36Sopenharmony_ci	  any VLAN information configured on the bridge port or bridge device.
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci	  Say N to exclude this support and reduce the binary size.
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci	  If unsure, say Y.
6462306a36Sopenharmony_ci
6562306a36Sopenharmony_ciconfig BRIDGE_MRP
6662306a36Sopenharmony_ci	bool "MRP protocol"
6762306a36Sopenharmony_ci	depends on BRIDGE
6862306a36Sopenharmony_ci	default n
6962306a36Sopenharmony_ci	help
7062306a36Sopenharmony_ci	  If you say Y here, then the Ethernet bridge will be able to run MRP
7162306a36Sopenharmony_ci	  protocol to detect loops
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci	  Say N to exclude this support and reduce the binary size.
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ci	  If unsure, say N.
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciconfig BRIDGE_CFM
7862306a36Sopenharmony_ci	bool "CFM protocol"
7962306a36Sopenharmony_ci	depends on BRIDGE
8062306a36Sopenharmony_ci	help
8162306a36Sopenharmony_ci	  If you say Y here, then the Ethernet bridge will be able to run CFM
8262306a36Sopenharmony_ci	  protocol according to 802.1Q section 12.14
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ci	  Say N to exclude this support and reduce the binary size.
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci	  If unsure, say N.
87