]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Bonding Overriding Configuration logic restored.
authorAnton Nayshtut <anton@swortex.com>
Sun, 29 Mar 2015 11:20:25 +0000 (14:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 17:49:45 +0000 (13:49 -0400)
commit0eff935ac0768884041c08d3301511dd9201e204
treea82dc5910d2b0fe14c664ca15e471a5638e555a5
parentf658e1e0ca01ffb8d1b4b13627ded0253e263ea5
bonding: Bonding Overriding Configuration logic restored.

Before commit 099d5ee3f45e63a724545989e800ecd6205ff8ea ("bonding: slight
optimizztion for bond_slave_override()") the override logic was to send packets
with non-zero queue_id through the slave with corresponding queue_id, under two
conditions only - if the slave can transmit and it's up.

The above mentioned commit changed this logic by introducing an additional
condition - whether the bond is active (indirectly, using the slave_can_tx and
later - bond_is_active_slave), that prevents the user from implementing more
complex policies according to the Documentation/networking/bonding.txt.

Signed-off-by: Anton Nayshtut <anton@swortex.com>
Signed-off-by: Alexey Bogoslavsky <alexey@swortex.com>
Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c