]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
vxlan: don't expire permanent entries
authorstephen hemminger <shemminger@vyatta.com>
Fri, 26 Oct 2012 06:24:34 +0000 (06:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Oct 2012 17:42:12 +0000 (13:42 -0400)
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>
drivers/net/vxlan.c

index 607976c001626a75afbf590411bf6ec1bbff26c0..7b4adde93c016b7e020306220e372524da9f5deb 100644 (file)
@@ -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;