Commit eb064c3b authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

vxlan: fix check for migration of static entry

The check introduced by:
	commit 26a41ae6
	Author: stephen hemminger <stephen@networkplumber.org>
	Date:   Mon Jun 17 12:09:58 2013 -0700

	    vxlan: only migrate dynamic FDB entries

was not correct because it is checking flag about type of FDB
entry, rather than the state (dynamic versus static). The confusion
arises because vxlan is reusing values from bridge, and bridge is
reusing values from neighbour table, and easy to get lost in translation.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4afe2156
...@@ -579,7 +579,7 @@ static bool vxlan_snoop(struct net_device *dev, ...@@ -579,7 +579,7 @@ static bool vxlan_snoop(struct net_device *dev,
return false; return false;
/* Don't migrate static entries, drop packets */ /* Don't migrate static entries, drop packets */
if (!(f->flags & NTF_SELF)) if (f->state & NUD_NOARP)
return true; return true;
if (net_ratelimit()) 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