summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-06-18 23:27:01 +0200
committerDavid S. Miller <davem@davemloft.net>2013-06-19 09:50:58 +0200
commiteb064c3b49931dc73bba59887019c7f5cb97d322 (patch)
treee1e8b73daadc0efa33f4993192faa555344d4c75 /drivers
parentcan: usb_8dev: unregister netdev before free()ing (diff)
downloadlinux-eb064c3b49931dc73bba59887019c7f5cb97d322.tar.xz
linux-eb064c3b49931dc73bba59887019c7f5cb97d322.zip
vxlan: fix check for migration of static entry
The check introduced by: commit 26a41ae604381c5cc0caf1c3261ca6b298b5fe69 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: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index dda997a0102c..57325f356d4f 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -579,7 +579,7 @@ static bool vxlan_snoop(struct net_device *dev,
return false;
/* Don't migrate static entries, drop packets */
- if (!(f->flags & NTF_SELF))
+ if (f->state & NUD_NOARP)
return true;
if (net_ratelimit())