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
823823 /* bridge boolean options
824824 * BR_BOOLOPT_NO_LL_LEARN - disable learning from link-local packets
825825 * 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
826828 *
827829 * IMPORTANT: if adding a new option do not forget to handle
828830 * it in br_boolopt_toggle/get and bridge sysfs
@@ -832,6 +834,7 @@ enum br_boolopt_id { · 3 unmodified lines
832834 BR_BOOLOPT_MCAST_VLAN_SNOOPING,
833835 BR_BOOLOPT_MST_ENABLE,
834836 BR_BOOLOPT_MDB_OFFLOAD_FAIL_NOTIFICATION,
837+ BR_BOOLOPT_FDB_LOCAL_VLAN_0,
835838 BR_BOOLOPT_MAX
836839 };
837840