diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-10-26 08:24:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-31 18:42:12 +0100 |
commit | 3c172868cbbe3eb138fd57bb346c77dffb22b182 (patch) | |
tree | 2c572fbb13eb4cb66556c582dfa8100ba94487b2 /drivers/net/vxlan.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-3c172868cbbe3eb138fd57bb346c77dffb22b182.tar.xz linux-3c172868cbbe3eb138fd57bb346c77dffb22b182.zip |
vxlan: don't expire permanent entries
VXLAN confused flag versus bitmap on state.
Based on part of a earlier patch by David Stevens.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/vxlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 607976c00162..7b4adde93c01 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -816,7 +816,7 @@ static void vxlan_cleanup(unsigned long arg) = container_of(p, struct vxlan_fdb, hlist); unsigned long timeout; - if (f->state == NUD_PERMANENT) + if (f->state & NUD_PERMANENT) continue; timeout = f->used + vxlan->age_interval * HZ; |