瀏覽代碼

vxlan: send notification when MAC migrates

When learned entry migrates to another IP send a notification
that entry has changed.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Stephen Hemminger 12 年之前
父節點
當前提交
8385f50a03
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/net/vxlan.c

+ 1 - 0
drivers/net/vxlan.c

@@ -629,6 +629,7 @@ static bool vxlan_snoop(struct net_device *dev,
 
 		f->remote.remote_ip = src_ip;
 		f->updated = jiffies;
+		vxlan_fdb_notify(vxlan, f, RTM_NEWNEIGH);
 	} else {
 		/* learned new entry */
 		spin_lock(&vxlan->hash_lock);