浏览代码

net: Resend IGMP memberships upon peer notification.

When we notify peers of potential changes,  it's also good to update
IGMP memberships.  For example, during VM migration, updating IGMP
memberships will redirect existing multicast streams to the VM at the
new location.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Vlad Yasevich 8 年之前
父节点
当前提交
37c343b4f4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/core/dev.c

+ 1 - 0
net/core/dev.c

@@ -1304,6 +1304,7 @@ void netdev_notify_peers(struct net_device *dev)
 {
 {
 	rtnl_lock();
 	rtnl_lock();
 	call_netdevice_notifiers(NETDEV_NOTIFY_PEERS, dev);
 	call_netdevice_notifiers(NETDEV_NOTIFY_PEERS, dev);
+	call_netdevice_notifiers(NETDEV_RESEND_IGMP, dev);
 	rtnl_unlock();
 	rtnl_unlock();
 }
 }
 EXPORT_SYMBOL(netdev_notify_peers);
 EXPORT_SYMBOL(netdev_notify_peers);