|
@@ -1106,6 +1106,24 @@ void netdev_state_change(struct net_device *dev)
|
|
|
}
|
|
|
EXPORT_SYMBOL(netdev_state_change);
|
|
|
|
|
|
+/**
|
|
|
+ * netdev_notify_peers - notify network peers about existence of @dev
|
|
|
+ * @dev: network device
|
|
|
+ *
|
|
|
+ * Generate traffic such that interested network peers are aware of
|
|
|
+ * @dev, such as by generating a gratuitous ARP. This may be used when
|
|
|
+ * a device wants to inform the rest of the network about some sort of
|
|
|
+ * reconfiguration such as a failover event or virtual machine
|
|
|
+ * migration.
|
|
|
+ */
|
|
|
+void netdev_notify_peers(struct net_device *dev)
|
|
|
+{
|
|
|
+ rtnl_lock();
|
|
|
+ call_netdevice_notifiers(NETDEV_NOTIFY_PEERS, dev);
|
|
|
+ rtnl_unlock();
|
|
|
+}
|
|
|
+EXPORT_SYMBOL(netdev_notify_peers);
|
|
|
+
|
|
|
int netdev_bonding_change(struct net_device *dev, unsigned long event)
|
|
|
{
|
|
|
return call_netdevice_notifiers(event, dev);
|