vxlan: send notification when MAC migrates
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 17 Jun 2013 21:16:10 +0000 (14:16 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 24 Jun 2013 15:40:32 +0000 (08:40 -0700)
When learned entry migrates to another IP send a notification
that entry has changed.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/vxlan.c

index b061c98..1f2aa26 100644 (file)
@@ -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);