bond: implement [add/del]_slave ops
authorJiri Pirko <jpirko@redhat.com>
Sun, 13 Feb 2011 09:33:01 +0000 (09:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2011 00:58:40 +0000 (16:58 -0800)
allow enslaving/releasing using netlink interface

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c

index 9f877878d63654b0335dd7d200240dc21b452cde..77e3c6a7176acf0a96701b3aa3eb84481c9d5496 100644 (file)
@@ -4657,6 +4657,8 @@ static const struct net_device_ops bond_netdev_ops = {
        .ndo_netpoll_cleanup    = bond_netpoll_cleanup,
        .ndo_poll_controller    = bond_poll_controller,
 #endif
+       .ndo_add_slave          = bond_enslave,
+       .ndo_del_slave          = bond_release,
 };
 
 static void bond_destructor(struct net_device *bond_dev)