net: create sysfs symlinks for neighbour devices
authorVeaceslav Falico <[email protected]>
Wed, 25 Sep 2013 07:20:32 +0000 (09:20 +0200)
committerDavid S. Miller <[email protected]>
Thu, 26 Sep 2013 20:02:08 +0000 (16:02 -0400)
commit5831d66e8097aedfa3bc35941cf265ada2352317
treedc71bea5d018fdcc1f68af27ea8af52be02628e5
parent842d67a7b34ea735155812ecf0671a481284f358
net: create sysfs symlinks for neighbour devices

Also, remove the same functionality from bonding - it will be already done
for any device that links to its lower/upper neighbour.

The links will be created for dev's kobject, and will look like
lower_eth0 for lower device eth0 and upper_bridge0 for upper device
bridge0.

CC: Jay Vosburgh <[email protected]>
CC: Andy Gospodarek <[email protected]>
CC: "David S. Miller" <[email protected]>
CC: Eric Dumazet <[email protected]>
CC: Jiri Pirko <[email protected]>
CC: Alexander Duyck <[email protected]>
Signed-off-by: Veaceslav Falico <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h
net/core/dev.c