diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 1f06df8d10a3..5defcf940005 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1106,6 +1106,24 @@ void netdev_state_change(struct net_device *dev) | |||
1106 | } | 1106 | } |
1107 | EXPORT_SYMBOL(netdev_state_change); | 1107 | EXPORT_SYMBOL(netdev_state_change); |
1108 | 1108 | ||
1109 | /** | ||
1110 | * netdev_notify_peers - notify network peers about existence of @dev | ||
1111 | * @dev: network device | ||
1112 | * | ||
1113 | * Generate traffic such that interested network peers are aware of | ||
1114 | * @dev, such as by generating a gratuitous ARP. This may be used when | ||
1115 | * a device wants to inform the rest of the network about some sort of | ||
1116 | * reconfiguration such as a failover event or virtual machine | ||
1117 | * migration. | ||
1118 | */ | ||
1119 | void netdev_notify_peers(struct net_device *dev) | ||
1120 | { | ||
1121 | rtnl_lock(); | ||
1122 | call_netdevice_notifiers(NETDEV_NOTIFY_PEERS, dev); | ||
1123 | rtnl_unlock(); | ||
1124 | } | ||
1125 | EXPORT_SYMBOL(netdev_notify_peers); | ||
1126 | |||
1109 | int netdev_bonding_change(struct net_device *dev, unsigned long event) | 1127 | int netdev_bonding_change(struct net_device *dev, unsigned long event) |
1110 | { | 1128 | { |
1111 | return call_netdevice_notifiers(event, dev); | 1129 | return call_netdevice_notifiers(event, dev); |