bonding: add missing policies
authorHelge Mader <redacted>
Mon, 2 Mar 2020 13:39:45 +0000 (14:39 +0100)
committerHelge Mader <redacted>
Tue, 3 Mar 2020 10:28:43 +0000 (11:28 +0100)
Signed-off-by: Helge Mader <redacted>
net/bonding/Makefile
net/bonding/files/lib/netifd/proto/bonding.sh

index 1c53fcb61c7557b964ea450975a0524c87c970a1..82543d242725a6a852e1ac6663dc4e5eb0b84117 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=proto-bonding
-PKG_VERSION:=2018-06-11
+PKG_VERSION:=2020-03-03
 PKG_RELEASE:=1
 
 PKG_LICENSE:=GPL-2.0
index b624738fef1f6f2f100a7534a0cb6e809fb71082..5b106bc034adb06312e5190be68d71756d8e9c04 100755 (executable)
@@ -107,6 +107,15 @@ proto_bonding_setup() {
                        set_driver_values primary primary_reselect lp_interval tlb_dynamic_lb resend_igmp xmit_hash_policy
                ;;
 
+               balance-xor)
+                       echo "$bonding_policy" > /sys/class/net/"$link"/bonding/mode
+                       set_driver_values xmit_hash_policy
+               ;;
+
+               broadcast)
+                       echo "$bonding_policy" > /sys/class/net/"$link"/bonding/mode
+               ;;
+
                active-backup)
                        echo "$bonding_policy" > /sys/class/net/"$link"/bonding/mode
                        set_driver_values primary primary_reselect fail_over_mac num_grat_arp__num_unsol_na xmit_hash_policy
git clone https://git.99rst.org/PROJECT