]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:50:21 +0000 (19:50 +0200)
[ 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c

index e4ff1e45c02e15440227b4ad11a62affc45c86c3..c41378214ede895d03ff158cc532e1c9c6a9e2f8 100644 (file)
@@ -962,7 +962,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())