bonding: Allow setting and querying xmit policy regardless of mode
authorWagner Ferenc <wferi@niif.hu>
Fri, 7 Dec 2007 07:40:32 +0000 (23:40 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 7 Dec 2007 20:00:28 +0000 (15:00 -0500)
commit8e4b9329080b7c37e3dcf4a7c435657d4d0f4816
tree600cf8b513b1727075adcd3b55a01208a2b0708e
parent1dcdcd69549c8e439fbe97a94ff0332ed8a55558
bonding: Allow setting and querying xmit policy regardless of mode

From: Wagner Ferenc <wferi@niif.hu>

For consistency with the behaviour of the arp_ip_target option,
let /sys/class/net/bond0/bonding/xmit_hash_policy accept and report
current policy even if the bonding mode in effect does not use it.

Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_sysfs.c