]> git.baikalelectronics.ru Git - 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)
commit050132c12e96fd638a871423596bd3f4a42e0f62
tree01d626dad150aa331d549b6f43460d629ad6ba46
parent77cc8b7190fb2b10e8b6db373d872dbfc8d6da96
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