diff mbox

[net-next,04/12] vxlan: send notification when MAC migrates

Message ID 20130610132452.0254d164@nehalam.linuxnetplumber.net
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Stephen Hemminger June 10, 2013, 8:24 p.m. UTC
When learned entry migrates to another IP send a notification
that entry has changed.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/drivers/net/vxlan.c	2013-06-10 12:19:58.398104802 -0700
+++ b/drivers/net/vxlan.c	2013-06-10 12:19:59.002097934 -0700
@@ -629,6 +629,7 @@  static bool vxlan_snoop(struct net_devic
 
 		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);