]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94ed1b79d518d5c081fc6e3ea9e288454c9c92ff
tree052d8f8b3dc82b6c52c06805a71af582a9fc6ab3
parentd4b6d148d77473a5a42e9d7c1a9b8398a9458d83
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