]> Pileus Git - ~andy/linux/commit
net: expose the master link to sysfs, and remove it from bond
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:31 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:08 +0000 (16:02 -0400)
commit842d67a7b34ea735155812ecf0671a481284f358
tree71b2de5b2ffda2fa7e41c1d9e9023eef51006394
parent47701a36a3ed6d97e5bbe7ad72cceb49ca329d00
net: expose the master link to sysfs, and remove it from bond

Currently, we can have only one master upper neighbour, so it would be
useful to create a symlink to it in the sysfs device directory, the way
that bonding now does it, for every device. Lower devices from
bridge/team/etc will automagically get it, so we could rely on it.

Also, remove the same functionality from bonding.

CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: "David S. Miller" <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Jiri Pirko <jiri@resnulli.us>
CC: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c
net/core/dev.c