]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7873f92fda775976150efb0653dff1673422a59
tree7806378cebccfea754fb566b9a707167071ad207
parentd505d7224a409a6267995c71eafec6c4e64583f3
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