Commit d4261e56 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

bonding: create netlink event when bonding option is changed



Userspace needs to be notified if one changes some option.

Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
Acked-by: default avatarVeaceslav Falico <vfalico@gmail.com>
Acked-by: default avatarAndy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0c32ec8f
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -625,6 +625,8 @@ int __bond_opt_set(struct bonding *bond,
out:
out:
	if (ret)
	if (ret)
		bond_opt_error_interpret(bond, opt, ret, val);
		bond_opt_error_interpret(bond, opt, ret, val);
	else
		call_netdevice_notifiers(NETDEV_CHANGEINFODATA, bond->dev);


	return ret;
	return ret;
}
}
+1 −0
Original line number Original line Diff line number Diff line
@@ -1982,6 +1982,7 @@ struct pcpu_sw_netstats {
#define NETDEV_CHANGEUPPER	0x0015
#define NETDEV_CHANGEUPPER	0x0015
#define NETDEV_RESEND_IGMP	0x0016
#define NETDEV_RESEND_IGMP	0x0016
#define NETDEV_PRECHANGEMTU	0x0017 /* notify before mtu change happened */
#define NETDEV_PRECHANGEMTU	0x0017 /* notify before mtu change happened */
#define NETDEV_CHANGEINFODATA	0x0018


int register_netdevice_notifier(struct notifier_block *nb);
int register_netdevice_notifier(struct notifier_block *nb);
int unregister_netdevice_notifier(struct notifier_block *nb);
int unregister_netdevice_notifier(struct notifier_block *nb);