]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b6244f0955aa11c7c9185cb2e072f7490deae20
treed4c7bfbf220cd541d8d3426c50d7b257a68e733c
parent970791d13d00a7760e23adf1068dc7387b48f474
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