summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-15 15:33:02 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-15 15:33:02 -0700
commit806a705775387fff477999ceed051b5aa29d6084 (patch)
tree94a18814c10ea6885574f6a9292bed1061aa5915 /templates/interfaces
parent5a2647cdb13335b630e692f8b4c1e30ecfc7b8ac (diff)
downloadvyatta-cfg-system-806a705775387fff477999ceed051b5aa29d6084.tar.gz
vyatta-cfg-system-806a705775387fff477999ceed051b5aa29d6084.zip
Add ability to set transmit hash policy
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/bonding/node.tag/hash-policy/node.def13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/hash-policy/node.def b/templates/interfaces/bonding/node.tag/hash-policy/node.def
new file mode 100644
index 00000000..54c2bb0f
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/hash-policy/node.def
@@ -0,0 +1,13 @@
+type: txt
+default: "layer2"
+allowed: echo "layer2 layer2+3 layer3+4"
+syntax:expression: $VAR(@) in "layer2", "layer2+3", "layer3+4" \
+ ; "hash_policy must be layer2 layer3+4 or layer2+3"
+help: Bonding transmit hash policy
+
+update: sudo sh -c \
+ "echo $VAR(@) >/sys/class/net/$VAR(../@)/bonding/xmit_hash_policy"
+
+val_help: layer2; use MAC addresses to generate the hash (802.3ad)
+val_help: layer2+3; combine MAC address and IP address to make hash
+val_help: layer3+4; combine IP address and port to make hash