提交 ab452c3c 编写于 作者: K Keefe Liu 提交者: David S. Miller

ipvlan: call netdevice notifier when master mac address changed

When master device's mac has been changed, the commit
32c10bbf ("ipvlan: always use the current L2 addr of the
master") makes the IPVlan devices's mac changed also, but it
doesn't do related works such as flush the IPVlan devices's
arp table.
Signed-off-by: NKeefe Liu <liuqifa@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f3002c13
...@@ -792,8 +792,10 @@ static int ipvlan_device_event(struct notifier_block *unused, ...@@ -792,8 +792,10 @@ static int ipvlan_device_event(struct notifier_block *unused,
break; break;
case NETDEV_CHANGEADDR: case NETDEV_CHANGEADDR:
list_for_each_entry(ipvlan, &port->ipvlans, pnode) list_for_each_entry(ipvlan, &port->ipvlans, pnode) {
ether_addr_copy(ipvlan->dev->dev_addr, dev->dev_addr); ether_addr_copy(ipvlan->dev->dev_addr, dev->dev_addr);
call_netdevice_notifiers(NETDEV_CHANGEADDR, ipvlan->dev);
}
break; break;
case NETDEV_PRE_TYPE_CHANGE: case NETDEV_PRE_TYPE_CHANGE:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册