Skip to contentSkip to conversation

vxlan: don't expire permanent entries

PATCH Applied Stephen Hemminger 2 participants 2 messages Oct 26, 2012 – Oct 31, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vxlan: don't expire permanent entries

VXLAN confused flag versus bitmap on state. Based on part of a earlier patch by David Stevens.

---
Applies to 3.7.0-rc2. Needs to be fixed in 3.7 series

drivers/net/vxlan.c +1 -1
@@ -816,7 +816,7 @@ static void vxlan_cleanup(unsigned long
 				= 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;