summaryrefslogtreecommitdiff
path: root/src/network/networkd-netdev-gperf.gperf
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2014-07-21 18:37:05 +0530
committerTom Gundersen <teg@jklm.no>2014-07-21 20:35:21 +0200
commit227cdf2c7ca0ab10af60674f929c4beeedb1ae67 (patch)
treea557dc562f4abe9e202ac7adf885c94aceaa1f0e /src/network/networkd-netdev-gperf.gperf
parent801a04c81be81f6ae1f82f8603a81891283256d9 (diff)
networkd: add support for bond transmit hash policy
This patch adds support the transmit hash policy to use for slave selection in balance-xor, 802.3ad, and tlb modes layer2, layer3+4, layer2+3, encap3+4, encap3+4 Added: 1. BondXmitHashPolicy 2. conf param TransmitHashPolicy Test conf: [NetDev] Name=bond1 Kind=bond [Bond] Mode=802.3ad TransmitHashPolicy=layer2+3 test output: cat /proc/net/bonding/bond1 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer2+3 (2) MII Status: up MII Polling Interval (ms): 0 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: slow Min links: 0 Aggregator selection policy (ad_select): stable bond bond1 has no active aggregator [tomegun: dropped bond_ prefix from new Bond variable, drop repeated man-page section]
Diffstat (limited to 'src/network/networkd-netdev-gperf.gperf')
-rw-r--r--src/network/networkd-netdev-gperf.gperf1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-netdev-gperf.gperf b/src/network/networkd-netdev-gperf.gperf
index b46b8dbfc9..bafdccfc1e 100644
--- a/src/network/networkd-netdev-gperf.gperf
+++ b/src/network/networkd-netdev-gperf.gperf
@@ -52,3 +52,4 @@ Tap.PacketInfo, config_parse_bool, 0,
Tap.User, config_parse_string, 0, offsetof(TunTap, user_name)
Tap.Group, config_parse_string, 0, offsetof(TunTap, group_name)
Bond.Mode, config_parse_bond_mode, 0, offsetof(Bond, mode)
+Bond.TransmitHashPolicy, config_parse_bond_xmit_hash_policy, 0, offsetof(Bond, xmit_hash_policy)