Skip to content

Commit

Permalink
vxlan: don't expire permanent entries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Oct 31, 2012
1 parent e657e07 commit 3c17286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c17286

Please sign in to comment.