bonding: check return value of nofitier when changing type
This patch adds the possibility to refuse the bonding type change for other subsystems (such as for example bridge, vlan, etc.) Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
93d9b7d7a8
commit
3ca5b4042e
@@ -1084,9 +1084,9 @@ void netdev_state_change(struct net_device *dev)
|
||||
}
|
||||
EXPORT_SYMBOL(netdev_state_change);
|
||||
|
||||
void netdev_bonding_change(struct net_device *dev, unsigned long event)
|
||||
int netdev_bonding_change(struct net_device *dev, unsigned long event)
|
||||
{
|
||||
call_netdevice_notifiers(event, dev);
|
||||
return call_netdevice_notifiers(event, dev);
|
||||
}
|
||||
EXPORT_SYMBOL(netdev_bonding_change);
|
||||
|
||||
|
Reference in New Issue
Block a user