]> Pileus Git - ~andy/linux/commit
bonding: Fix up parameter parsing
authorJay Vosburgh <fubar@us.ibm.com>
Fri, 18 Jan 2008 00:25:01 +0000 (16:25 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 18 Jan 2008 19:38:38 +0000 (14:38 -0500)
commitece95f7fefe3afae19e641e1b3f5e64b00d5b948
treeea3846fa640e0c3ed4d4233ac005b653dcf69824
parent3b96c858fcb27120fcba222366180c3293393ccf
bonding: Fix up parameter parsing

A recent change to add an additional hash policy modified
bond_parse_parm, but it now does not correctly match parameters passed in
via sysfs.

Rewrote bond_parse_parm to handle (a) parameter matches that
are substrings of one another and (b) user input with whitespace (e.g.,
sysfs input often has a trailing newline).

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h