]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: simplify broadcast_xmit function
authorNikolay Aleksandrov <razor@BlackWall.org>
Thu, 1 Aug 2013 14:54:49 +0000 (16:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2013 23:42:02 +0000 (16:42 -0700)
commit298f0738b5ae0ca82b0f866f250da9707dd09b47
treeff4d339878127fd2eeefbd81842b65b8c23828b5
parent8b1aff6f9d97b2259017c0f17334a77e0f0779cf
bonding: simplify broadcast_xmit function

We don't need to start from the curr_active_slave as the frame will be
sent to all eligible slaves anyway, so we remove the unnecessary local
variables, checks and comments, and make it use the standard list API.
This has the nice side-effect that later when it's converted to RCU
a race condition will be avoided which could lead to double packet tx.

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