]> 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)
commit7165a85088869198d8ace73c622348a2777e415c
treed4c7bfbf220cd541d8d3426c50d7b257a68e733c
parent91cf9398f6e0c00112ab8d84a930b8fe70048a41
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