bonding: add slave_changelink support and use it for queue_id
authorNikolay Aleksandrov <nikolay@redhat.com>
Wed, 27 Aug 2014 14:06:46 +0000 (16:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 01:32:22 +0000 (18:32 -0700)
commit0f23124aaacd68e11271f72a13f3a8e8904c26d3
tree052d8f8b3dc82b6c52c06805a71af582a9fc6ab3
parent688d1945bc89bd585ec67b5b83121f499e6290bb
bonding: add slave_changelink support and use it for queue_id

This patch adds support for slave_changelink to the bonding and uses it
to give the ability to change the queue_id of the enslaved devices via
netlink. It sets slave_maxtype and uses bond_changelink as a prototype for
bond_slave_changelink.
Example/test command after the iproute2 patch:
 ip link set eth0 type bond_slave queue_id 10

CC: David S. Miller <davem@davemloft.net>
CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Suggested-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_netlink.c