bonding: consolidate the two rlb_next_rx_slave functions into one
authorNikolay Aleksandrov <nikolay@redhat.com>
Mon, 15 Sep 2014 15:19:33 +0000 (17:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Sep 2014 21:19:49 +0000 (17:19 -0400)
__rlb_next_rx_slave() is a copy of rlb_next_rx_slave() with the
difference that it uses rcu primitives to walk the slave list. We don't
need the two functions and can make rlb_next_rx_slave() a wrapper for
callers which hold RTNL.
So add a comment and ASSERT_RTNL() to make sure what is intended.

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

Simple merge