]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
bonding: allow notifications for bond_set_slave_link_state
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Dec 2015 11:12:19 +0000 (12:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 16:49:27 +0000 (11:49 -0500)
commit5d397061ca2081d8a99e4bee5792122faa6aaf86
tree01d626dad150aa331d549b6f43460d629ad6ba46
parent3a0d6c5af5e52622a58c68d7c276db9ec38ee2a4
bonding: allow notifications for bond_set_slave_link_state

Similar to state notifications.

We allow caller to indicate if the notification should happen now or later,
depending on if he holds rtnl mutex or not. Introduce bond_slave_link_notify
function (similar to bond_slave_state_notify) which is later on called
with rtnl mutex and goes over slaves and executes delayed notification.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
include/net/bonding.h