]> 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)
commited648e8db758d5e55f8b1534c0821e53401f86e6
treeff4d339878127fd2eeefbd81842b65b8c23828b5
parent52cfb2ca7d41d920ed434cdae27e64c37a68ac4f
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