History

net: bridge: Introduce UAPI for BR_BOOLOPT_FDB_LOCAL_VLAN_0

The previous patches introduced a new option, BR_BOOLOPT_FDB_LOCAL_VLAN_0. When enabled, it has local FDB entries installed only on VLAN 0, instead of duplicating them across all VLANs. In this patch, add the corresponding UAPI toggle, and the code for turning the feature on and off.

Petr Machata committed 1 year ago

Commit 21446c01 parent a29aba64 files · +123 −0Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/if_bridge.h+3−0
@@ -823,6 +823,8 @@ struct br_mcast_stats { · 822 unmodified lines
823/* bridge boolean options823/* bridge boolean options
824 * BR_BOOLOPT_NO_LL_LEARN - disable learning from link-local packets824 * BR_BOOLOPT_NO_LL_LEARN - disable learning from link-local packets
825 * BR_BOOLOPT_MCAST_VLAN_SNOOPING - control vlan multicast snooping825 * BR_BOOLOPT_MCAST_VLAN_SNOOPING - control vlan multicast snooping
826 * BR_BOOLOPT_FDB_LOCAL_VLAN_0 - local FDB entries installed by the bridge
827 * driver itself should only be added on VLAN 0
826 *828 *
827 * IMPORTANT: if adding a new option do not forget to handle829 * IMPORTANT: if adding a new option do not forget to handle
828 * it in br_boolopt_toggle/get and bridge sysfs830 * it in br_boolopt_toggle/get and bridge sysfs
@@ -832,6 +834,7 @@ enum br_boolopt_id { · 3 unmodified lines
832 BR_BOOLOPT_MCAST_VLAN_SNOOPING,834 BR_BOOLOPT_MCAST_VLAN_SNOOPING,
833 BR_BOOLOPT_MST_ENABLE,835 BR_BOOLOPT_MST_ENABLE,
834 BR_BOOLOPT_MDB_OFFLOAD_FAIL_NOTIFICATION,836 BR_BOOLOPT_MDB_OFFLOAD_FAIL_NOTIFICATION,
837 BR_BOOLOPT_FDB_LOCAL_VLAN_0,
835 BR_BOOLOPT_MAX838 BR_BOOLOPT_MAX
836};839};
837 840