]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
vxlan: dont migrate permanent fdb entries during learn
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sun, 11 Jun 2017 23:32:50 +0000 (16:32 -0700)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:29 +0000 (21:36 -0400)
[ Upstream commit e0090a9e979de5202c7d16c635dea2f005221073 ]

This patch fixes vxlan_snoop to not move permanent fdb entries
on learn events. This is consistent with the bridge fdb
handling of permanent entries.

Fixes: 26a41ae60438 ("vxlan: only migrate dynamic FDB entries")
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/net/vxlan.c

index 1ad3700ed9c74d55b2ff0f7b36abb286a5af148f..8ddefc96fb5035e183eb69ac731cb47e9de4f79f 100644 (file)
@@ -1001,7 +1001,7 @@ static bool vxlan_snoop(struct net_device *dev,
                        return false;
 
                /* Don't migrate static entries, drop packets */
-               if (f->state & NUD_NOARP)
+               if (f->state & (NUD_PERMANENT | NUD_NOARP))
                        return true;
 
                if (net_ratelimit())