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)
commit78a646ced88450754613573f7d1fa7cb0de14bb3
treeff4d339878127fd2eeefbd81842b65b8c23828b5
parent71bc3b2dc5d02566afe1b23a7b72bfc8acdd04e1
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