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

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: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e657e078
...@@ -816,7 +816,7 @@ static void vxlan_cleanup(unsigned long arg) ...@@ -816,7 +816,7 @@ static void vxlan_cleanup(unsigned long arg)
= container_of(p, struct vxlan_fdb, hlist); = container_of(p, struct vxlan_fdb, hlist);
unsigned long timeout; unsigned long timeout;
if (f->state == NUD_PERMANENT) if (f->state & NUD_PERMANENT)
continue; continue;
timeout = f->used + vxlan->age_interval * HZ; timeout = f->used + vxlan->age_interval * HZ;
......
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