summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolò2025-05-04 15:22:05 +0000
committerRobert Marko2025-05-17 09:33:16 +0000
commite8bbf246ce2e134613d3b68477dcb955689408e4 (patch)
treec497985ef68eafd15a13080cfab1b21bcd34968f
parenta1b6386a20a6352fea626345a044b538c1473a49 (diff)
downloadnetifd-e8bbf246ce2e134613d3b68477dcb955689408e4.tar.gz
system-linux: fix sysfs name for all_ports_active flag
Right now system-linux writes to the wrong file (not existing) to configure the "all_ports_active" flag for bonding devices. Write to the correct "bonding/all_slaves_active" path. Signed-off-by: Nicolò Veronese <nicveronese@gmail.com> Link: https://github.com/openwrt/netifd/pull/49 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--system-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c
index 8fd0988..46b5b9b 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1189,7 +1189,7 @@ int system_bonding_set_device(struct device *dev, struct bonding_config *cfg)
system_set_dev_sysfs("bonding/mode", ifname, bonding_policy_str[cfg->policy]);
- system_set_dev_sysfs_int("bonding/all_ports_active", ifname, cfg->all_ports_active);
+ system_set_dev_sysfs_int("bonding/all_slaves_active", ifname, cfg->all_ports_active);
if (cfg->policy == BONDING_MODE_BALANCE_XOR ||
cfg->policy == BONDING_MODE_BALANCE_TLB ||