]> Pileus Git - ~andy/linux/commit
bonding: add netlink attributes to slave link dev
authorsfeldma@cumulusnetworks.com <sfeldma@cumulusnetworks.com>
Fri, 17 Jan 2014 06:57:56 +0000 (22:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jan 2014 02:51:58 +0000 (18:51 -0800)
commit1d3ee88ae0d605629bf369ab0b868dae8ca62a48
tree7d547bb8ba12b9417a8f0055a08f1026d6392cf2
parent07699f9a7c8d1002e07011d5aa382cd63241eea8
bonding: add netlink attributes to slave link dev

If link is IFF_SLAVE, extend link dev netlink attributes to include
slave attributes with new IFLA_SLAVE nest.  Add netlink notification
(RTM_NEWLINK) when slave status changes from backup to active, or
visa-versa.

Adds new ndo_get_slave op to net_device_ops to fill skb with IFLA_SLAVE
attributes.  Currently only used by bonding driver, but could be
used by other aggregating devices with slaves.

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_netlink.c
drivers/net/bonding/bonding.h
include/linux/netdevice.h
include/uapi/linux/if_link.h
net/core/rtnetlink.c