mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
vxlan: dont migrate permanent fdb entries during learn
[ Upstream commite0090a9e97] 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:26a41ae604("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>
This commit is contained in:
parent
6f33d9068b
commit
f077d96029
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user