Browse Source

Merge pull request #11493 from TDT-AG/pr/20200303-bonding

bonding: add missing policies
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
1ebecd31ab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions
  1. +1
    -1
      net/bonding/Makefile
  2. +9
    -0
      net/bonding/files/lib/netifd/proto/bonding.sh

+ 1
- 1
net/bonding/Makefile View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=proto-bonding PKG_NAME:=proto-bonding
PKG_VERSION:=2018-06-11
PKG_VERSION:=2020-03-03
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0


+ 9
- 0
net/bonding/files/lib/netifd/proto/bonding.sh View File

@ -107,6 +107,15 @@ proto_bonding_setup() {
set_driver_values primary primary_reselect lp_interval tlb_dynamic_lb resend_igmp xmit_hash_policy 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) active-backup)
echo "$bonding_policy" > /sys/class/net/"$link"/bonding/mode 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 set_driver_values primary primary_reselect fail_over_mac num_grat_arp__num_unsol_na xmit_hash_policy


Loading…
Cancel
Save