bonding: Use a per netns implementation of /sys/class/net/bonding_masters.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 12 Oct 2011 21:56:25 +0000 (21:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 23:24:15 +0000 (19:24 -0400)
commit4c22400ab64d434a00ecbe0c655a16956c902aa8
tree7806378cebccfea754fb566b9a707167071ad207
parent672d82c18d222e51b40ff47e660fc54ec3e3e0a9
bonding: Use a per netns implementation of /sys/class/net/bonding_masters.

This fixes a network namespace misfeature that bonding_masters looked at
current instead of the remembering the context where in which
/sys/class/net/bonding_masters was opened in to see which network
namespace to act upon.

This removes the need for sysfs to handle tagged directories with
untagged members allowing for a conceptually simpler sysfs
implementation.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h