From 454e9c33c90691d5bea12263f1801a7dc38c20b1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 24 Aug 2021 17:16:05 +0200 Subject: bridge: tune default stp parameters The default forwarding delay 2 is broken and makes STP non-functional by default. The kernel's default of 15 is rather long. This commit changes makes the timer settings more aggressive than the kernel's default while still being consistent and allowing proper convergence for a network diameter up to 4 Signed-off-by: Felix Fietkau --- system.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'system.h') diff --git a/system.h b/system.h index c5c4f23..b6eda7e 100644 --- a/system.h +++ b/system.h @@ -108,14 +108,12 @@ extern const struct uci_blob_param_list ipip6_data_attr_list; extern const struct uci_blob_param_list fmr_data_attr_list; enum bridge_opt { - /* stp and forward delay always set */ + /* stp, forward delay, max age and hello time are always set */ BRIDGE_OPT_AGEING_TIME = (1 << 0), - BRIDGE_OPT_HELLO_TIME = (1 << 1), - BRIDGE_OPT_MAX_AGE = (1 << 2), - BRIDGE_OPT_ROBUSTNESS = (1 << 3), - BRIDGE_OPT_QUERY_INTERVAL = (1 << 4), - BRIDGE_OPT_QUERY_RESPONSE_INTERVAL = (1 << 5), - BRIDGE_OPT_LAST_MEMBER_INTERVAL = (1 << 6), + BRIDGE_OPT_ROBUSTNESS = (1 << 1), + BRIDGE_OPT_QUERY_INTERVAL = (1 << 2), + BRIDGE_OPT_QUERY_RESPONSE_INTERVAL = (1 << 3), + BRIDGE_OPT_LAST_MEMBER_INTERVAL = (1 << 4), }; struct bridge_config { -- cgit v1.2.1