Commit deaee4d2 authored by Roopa Prabhu's avatar Roopa Prabhu Committed by Greg Kroah-Hartman

vxlan: dont migrate permanent fdb entries during learn


[ Upstream commit e0090a9e ]

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: 26a41ae6 ("vxlan: only migrate dynamic FDB entries")
Signed-off-by: default avatarRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d5a4ef2b
......@@ -930,7 +930,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())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment