From: stephen hemminger Date: Fri, 26 Oct 2012 06:24:34 +0000 (+0000) Subject: vxlan: don't expire permanent entries X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3c172868cbbe3eb138fd57bb346c77dffb22b182;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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;