net/bonding: Export bond_option_active_slave_get_rcu
authorMatan Barak <matanb@mellanox.com>
Thu, 30 Jul 2015 15:33:24 +0000 (18:33 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:08:50 +0000 (18:08 -0400)
commite999869548b9ab97b7dffa053ba2fee81c31d069
treed4c7bfbf220cd541d8d3426c50d7b257a68e733c
parent816dd19b3d191da88bc034fb85e21ed09a3ed320
net/bonding: Export bond_option_active_slave_get_rcu

Some consumers of the netdev events API would like to know who is the
active slave when a NETDEV_CHANGEUPPER or NETDEV_BONDING_FAILOVER
events occur. For example, when managing RoCE GIDs, GIDs based on the
bond's ips should only be set on the port which corresponds to active
slave netdevice.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/bonding/bond_options.c
include/net/bonding.h