summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorBalakrishnan Raman <ramanb@cumulusnetworks.com>2017-01-23 20:44:33 -0800
committerDavid S. Miller <davem@davemloft.net>2017-01-24 15:01:58 -0500
commitefb5f68f32995c146944a9d4257c3cf8eae2c4a1 (patch)
tree47b28c228d447a65b1e5f1c2de528ea91345d53d /drivers/net/vxlan.c
parent8b3f9337e17aaf710c79e65fd0a3c572a075f498 (diff)
downloadlinux-efb5f68f32995c146944a9d4257c3cf8eae2c4a1.tar.bz2
vxlan: do not age static remote mac entries
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>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 746a819f0a41..50b62db213b0 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -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;