From 6655654467a49f4c86c036bbb0d079a8fb6d52bd Mon Sep 17 00:00:00 2001 From: Helge Mader Date: Mon, 2 Mar 2020 14:39:45 +0100 Subject: [PATCH] bonding: add missing policies Signed-off-by: Helge Mader --- net/bonding/Makefile | 2 +- net/bonding/files/lib/netifd/proto/bonding.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/net/bonding/Makefile b/net/bonding/Makefile index 1c53fcb61..82543d242 100644 --- a/net/bonding/Makefile +++ b/net/bonding/Makefile @@ -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 diff --git a/net/bonding/files/lib/netifd/proto/bonding.sh b/net/bonding/files/lib/netifd/proto/bonding.sh index b624738fe..5b106bc03 100755 --- a/net/bonding/files/lib/netifd/proto/bonding.sh +++ b/net/bonding/files/lib/netifd/proto/bonding.sh @@ -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