Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bridge: cfm: Add BRIDGE_CFM to Kconfig.

This makes it possible to include or exclude the CFM
protocol according to 802.1Q section 12.14.

Signed-off-by: Henrik Bjoernlund <henrik.bjoernlund@microchip.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Henrik Bjoernlund and committed by
Jakub Kicinski
f323aa54 90c628dd

+17
+11
net/bridge/Kconfig
··· 73 73 Say N to exclude this support and reduce the binary size. 74 74 75 75 If unsure, say N. 76 + 77 + config BRIDGE_CFM 78 + bool "CFM protocol" 79 + depends on BRIDGE 80 + help 81 + If you say Y here, then the Ethernet bridge will be able to run CFM 82 + protocol according to 802.1Q section 12.14 83 + 84 + Say N to exclude this support and reduce the binary size. 85 + 86 + If unsure, say N.
+3
net/bridge/br_device.c
··· 458 458 #if IS_ENABLED(CONFIG_BRIDGE_MRP) 459 459 INIT_LIST_HEAD(&br->mrp_list); 460 460 #endif 461 + #if IS_ENABLED(CONFIG_BRIDGE_CFM) 462 + INIT_HLIST_HEAD(&br->mep_list); 463 + #endif 461 464 spin_lock_init(&br->hash_lock); 462 465 463 466 br->bridge_id.prio[0] = 0x80;
+3
net/bridge/br_private.h
··· 484 484 #if IS_ENABLED(CONFIG_BRIDGE_MRP) 485 485 struct list_head mrp_list; 486 486 #endif 487 + #if IS_ENABLED(CONFIG_BRIDGE_CFM) 488 + struct hlist_head mep_list; 489 + #endif 487 490 }; 488 491 489 492 struct br_input_skb_cb {