diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-03-10 05:29:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-18 23:00:02 -0400 |
commit | 3ca5b4042ecae5e73c59de62e4ac0db31c10e0f8 (patch) | |
tree | a285e4281bd9ee6a248d905cd4707c15a66bac96 /net/core | |
parent | 93d9b7d7a85cfb4e1711d5226eba73586dd4919f (diff) |
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>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 1a7e1d1d5ad9..d1f027c41e73 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1084,9 +1084,9 @@ void netdev_state_change(struct net_device *dev) | |||
1084 | } | 1084 | } |
1085 | EXPORT_SYMBOL(netdev_state_change); | 1085 | EXPORT_SYMBOL(netdev_state_change); |
1086 | 1086 | ||
1087 | void netdev_bonding_change(struct net_device *dev, unsigned long event) | 1087 | int netdev_bonding_change(struct net_device *dev, unsigned long event) |
1088 | { | 1088 | { |
1089 | call_netdevice_notifiers(event, dev); | 1089 | return call_netdevice_notifiers(event, dev); |
1090 | } | 1090 | } |
1091 | EXPORT_SYMBOL(netdev_bonding_change); | 1091 | EXPORT_SYMBOL(netdev_bonding_change); |
1092 | 1092 | ||