[openwrt/openwrt] kernel/modules: prevent bonding driver to create default bond0 interface
LEDE Commits
lede-commits at lists.infradead.org
Sun Oct 31 17:21:50 PDT 2021
chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b69dfb0a99cf228d99ff4bc9a0848df85969ce7d
commit b69dfb0a99cf228d99ff4bc9a0848df85969ce7d
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Wed Sep 8 14:14:27 2021 +0200
kernel/modules: prevent bonding driver to create default bond0 interface
When loading the bonding driver, bonding interface are automatically
created on bonding module load.
> ip a s bond0
> 14: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN
> group default qlen 1000
> link/ether a6:f2:20:64:c1:b9 brd ff:ff:ff:ff:ff:ff
This is not necessary in openwrt as we do not use this created interface.
The netifd creates a bonding interface based on its network configuration
name and configures this over the netifd bonding proto handler.
In order to keep the overview of the interfaces clear, bonding
interfaces should not be created automatically when loading this module,
because they are not used anyway.
Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
package/kernel/linux/modules/netsupport.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index 62d79db51e..166172dbf3 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -48,6 +48,7 @@ define KernelPackage/bonding
KCONFIG:=CONFIG_BONDING
FILES:=$(LINUX_DIR)/drivers/net/bonding/bonding.ko
AUTOLOAD:=$(call AutoLoad,40,bonding)
+ MODPARAMS.bonding:=max_bonds=0
endef
define KernelPackage/bonding/description
More information about the lede-commits
mailing list