vxlan: do not age static remote mac entries
authorBalakrishnan Raman <ramanb@cumulusnetworks.com>
Tue, 24 Jan 2017 04:44:33 +0000 (20:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 20:01:58 +0000 (15:01 -0500)
Mac aging is applicable only for dynamically learnt remote mac
entries. Check for user configured static remote mac entries
and skip aging.

Signed-off-by: Balakrishnan Raman <ramanb@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c

index 746a819f0a41d49281dc69bef37ce25fd1575b4c..50b62db213b0568aee2106492fbb216741a0561a 100644 (file)
@@ -2268,7 +2268,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 | NUD_NOARP))
                                continue;
 
                        timeout = f->used + vxlan->cfg.age_interval * HZ;