bonding: extend round-robin mode with packets_per_slave
authorNikolay Aleksandrov <nikolay@redhat.com>
Tue, 5 Nov 2013 12:51:41 +0000 (13:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2013 20:10:21 +0000 (15:10 -0500)
commit73958329ea1fe0dc149b51e5d8703015f65a03e0
tree149b655cfa917f9239f68dfe0ad3bb55d7ad8a90
parent6fb392b1a63ae36c31f62bc3fc8630b49d602b62
bonding: extend round-robin mode with packets_per_slave

This patch aims to extend round-robin mode with a new option called
packets_per_slave which can have the following values and effects:
0 - choose a random slave
1 (default) - standard round-robin, 1 packet per slave
 >1 - round-robin when >1 packets have been transmitted per slave
The allowed values are between 0 and 65535.
This patch also fixes the comment style in bond_xmit_roundrobin().

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h