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>
This commit is contained in:
parent
e657e078d3
commit
3c172868cb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue