]> git.baikalelectronics.ru Git - kernel.git/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)
commitf9f74f0b19933ac229b8f2a87a3791bc7012c5c7
tree7d547bb8ba12b9417a8f0055a08f1026d6392cf2
parentfefc498cca4e2aa7cc3daf49bfa0a0ba8dc48743
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